fix(moderation): resolve now requires more permissions
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 53s

This commit is contained in:
Seaswimmer 2023-10-22 14:17:09 -04:00
parent d0e36282b5
commit 167382a25a
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -694,7 +694,7 @@ class Moderation(commands.Cog):
Case number of the case you're trying to resolve
reason: str
Reason for resolving case"""
permissions = self.check_permissions(interaction.client.user, ['embed_links'], interaction)
permissions = self.check_permissions(interaction.client.user, ['embed_links', 'moderate_members', 'ban_members'], interaction)
if permissions:
await interaction.response.send_message(f"I do not have the `{permissions}` permission, required for this action.", ephemeral=True)
return