Skip to content

Commit

Permalink
fixed bug with adding new bot manager role
Browse files Browse the repository at this point in the history
  • Loading branch information
MooshiMochi committed Mar 29, 2024
1 parent e8617c3 commit 70ae3f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,8 @@ async def done_btn_callback(self, interaction: discord.Interaction, _) -> None:
)
return

if self._init_guild_config.bot_manager_role != self.guild_config.bot_manager_role:
if (self._init_guild_config.bot_manager_role is not None and
self._init_guild_config.bot_manager_role != self.guild_config.bot_manager_role):
missing_perms = check_missing_perms(interaction.permissions, discord.Permissions(manage_guild=True))
is_bot_manager = self._init_guild_config.bot_manager_role.id in [role.id for role in interaction.user.roles]
if is_bot_manager and missing_perms:
Expand Down

0 comments on commit 70ae3f9

Please sign in to comment.