fix(moderation): fixed allowedmention setting in mute command
All checks were successful
Pylint / Pylint (push) Successful in 1m12s

This commit is contained in:
Seaswimmer 2023-10-04 13:18:44 -04:00
parent ce584b0de7
commit 2b0e24a4e9
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): async def mute(self, ctx: commands.Context, target: discord.Member, duration: str, *, reason: str):
"""Mute a user.""" """Mute a user."""
if target.is_timed_out() is True: 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 return
try: try:
parsed_time = parse(sval=duration, as_timedelta=True, raise_exception=True) parsed_time = parse(sval=duration, as_timedelta=True, raise_exception=True)