fix(moderation): message.reply --> send
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
6c280f25c2
commit
ce584b0de7
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.message.reply(f"{target.mention} is already muted!", allowed_mentions=None)
|
||||
await ctx.send(f"{target.mention} is already muted!", allowed_mentions=None)
|
||||
return
|
||||
try:
|
||||
parsed_time = parse(sval=duration, as_timedelta=True, raise_exception=True)
|
||||
|
|
Loading…
Reference in a new issue