Compare commits
2 commits
9976cc1905
...
0000bec73f
Author | SHA1 | Date | |
---|---|---|---|
0000bec73f | |||
bc6f5bdfbe |
2 changed files with 3 additions and 2 deletions
|
@ -11,4 +11,5 @@
|
||||||
too-many-locals,
|
too-many-locals,
|
||||||
too-many-public-methods,
|
too-many-public-methods,
|
||||||
too-many-statements,
|
too-many-statements,
|
||||||
arguments-differ
|
arguments-differ,
|
||||||
|
too-many-return-statements
|
||||||
|
|
|
@ -74,7 +74,7 @@ class Shortmute(commands.Cog):
|
||||||
if role in target.roles:
|
if role in target.roles:
|
||||||
await interaction.response.send_message(content="You're trying to shortmute someone who is immune from shortmuting.", ephemeral=True)
|
await interaction.response.send_message(content="You're trying to shortmute someone who is immune from shortmuting.", ephemeral=True)
|
||||||
return
|
return
|
||||||
if target.guild_permissions.administrator is True:
|
if target.guild_permissions.administrator is True:
|
||||||
await interaction.response.send_message(content="You cannot shortmute people with the Administrator permission!", ephemeral=True)
|
await interaction.response.send_message(content="You cannot shortmute people with the Administrator permission!", ephemeral=True)
|
||||||
return
|
return
|
||||||
if duration in (1, -1):
|
if duration in (1, -1):
|
||||||
|
|
Loading…
Reference in a new issue