fix(moderation): fixed allowedmention setting in mute command
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
This commit is contained in:
parent
ce584b0de7
commit
2b0e24a4e9
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class Moderation(commands.Cog):
|
|||
async def mute(self, ctx: commands.Context, target: discord.Member, duration: str, *, reason: str):
|
||||
"""Mute a user."""
|
||||
if target.is_timed_out() is True:
|
||||
await ctx.send(f"{target.mention} is already muted!", allowed_mentions=None)
|
||||
await ctx.send(f"{target.mention} is already muted!", allowed_mentions=discord.AllowedMentions(users=False))
|
||||
return
|
||||
try:
|
||||
parsed_time = parse(sval=duration, as_timedelta=True, raise_exception=True)
|
||||
|
|
Loading…
Reference in a new issue