diff --git a/bot.py b/bot.py index 0b05992..7905405 100644 --- a/bot.py +++ b/bot.py @@ -112,7 +112,7 @@ async def on_message(self, message: discord.Message): async def is_team_member_or_owner(self, author: discord.User) -> bool: if self.application.team: - return author.id in self.application.team.members + return author.id in [member.id for member in self.application.team.members] else: return author.id == self.application.owner.id diff --git a/commands/misc.py b/commands/misc.py index 7b428ce..309c319 100644 --- a/commands/misc.py +++ b/commands/misc.py @@ -61,6 +61,7 @@ async def pin(interaction: discord.Interaction[ChouetteBot], message: discord.Me # Make a context menu command to delete messages @app_commands.guild_only +@app_commands.default_permissions(manage_messages=True) @app_commands.checks.bot_has_permissions( manage_messages=True, read_message_history=True, read_messages=True )