From 7e9fedd31199121d58a3c8b2d28189485ffca830 Mon Sep 17 00:00:00 2001 From: flifloo Date: Thu, 5 Nov 2020 15:04:27 +0100 Subject: [PATCH] Add support of disabled extension for warn --- extensions/warn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/warn.py b/extensions/warn.py index 17a0ade..ecf3255 100644 --- a/extensions/warn.py +++ b/extensions/warn.py @@ -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):