fix(shortmute): made an error message epheremal
All checks were successful
Pylint / Pylint (push) Successful in 1m11s
All checks were successful
Pylint / Pylint (push) Successful in 1m11s
This commit is contained in:
parent
016cce8945
commit
776c90effd
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Shortmute(commands.Cog):
|
||||||
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!")
|
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):
|
||||||
readable_duration = f"{duration} minute"
|
readable_duration = f"{duration} minute"
|
||||||
|
|
Loading…
Reference in a new issue