fix(moderation): changed command decorator for 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
9f1d864b31
commit
f792d9c149
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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.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):
|
async def mute(self, ctx: commands.Context, target: discord.Member, duration: str, reason: str):
|
||||||
"""Mute a user."""
|
"""Mute a user."""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue