fix(moderation): message.reply --> send
All checks were successful
Pylint / Pylint (push) Successful in 1m12s

This commit is contained in:
Seaswimmer 2023-10-04 13:16:55 -04:00
parent 6c280f25c2
commit ce584b0de7
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)