fix(moderation): resolve now requires more permissions
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 53s
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 53s
This commit is contained in:
parent
d0e36282b5
commit
167382a25a
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ class Moderation(commands.Cog):
|
||||||
Case number of the case you're trying to resolve
|
Case number of the case you're trying to resolve
|
||||||
reason: str
|
reason: str
|
||||||
Reason for resolving case"""
|
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:
|
if permissions:
|
||||||
await interaction.response.send_message(f"I do not have the `{permissions}` permission, required for this action.", ephemeral=True)
|
await interaction.response.send_message(f"I do not have the `{permissions}` permission, required for this action.", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue