fix(moderation): changed command decorator for mute command
All checks were successful
Pylint / Pylint (push) Successful in 1m12s

This commit is contained in:
SeaswimmerTheFsh 2023-10-04 12:46:48 -04:00
parent 9f1d864b31
commit f792d9c149
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -173,7 +173,7 @@ class Moderation(commands.Cog):
logging.debug("MySQL row inserted into %s_moderation!\n%s, %s, %s, %s, %s, %s, %s, %s, 0, NULL", guild_id, moderation_id, timestamp, moderation_type, target_id, author_id, duration, end_timestamp, reason)
@commands.hybrid_command(name="mute", aliases=['timeout'])
@commands.mod_or_permissions(discord.Permissions.moderate_members)
@commands.mod()
async def mute(self, ctx: commands.Context, target: discord.Member, duration: str, reason: str):
"""Mute a user."""
try: