1
0
Fork 0

Add support of disabled extension for warn

This commit is contained in:
Ethanell 2020-11-05 15:04:27 +01:00
parent 45f93367a4
commit 7e9fedd311

View file

@ -3,6 +3,7 @@ from discord.ext import commands
from discord.ext.commands import BadArgument
from administrator import db
from administrator.check import is_enabled
from administrator.logger import logger
from administrator.utils import time_pars, seconds_to_time_string
@ -39,6 +40,7 @@ class Warn(commands.Cog):
return users[user]
@commands.group("warn", pass_context=True)
@is_enabled()
@commands.guild_only()
#@commands.has_permissions(manage_roles=True, kick_members=True, ban_members=True, mute_members=True)
async def warn(self, ctx: commands.Context):