diff --git a/src/main/cogs/tools.py b/src/main/cogs/tools.py index b67b5d9..4d8f125 100644 --- a/src/main/cogs/tools.py +++ b/src/main/cogs/tools.py @@ -82,7 +82,7 @@ class Utils: print('Service built.') @commands.command(aliases=['up', 'u', 'vid', 'v']) - @checks.is_listed() + @commands.has_permissions(administrator=True) async def upload(self, ctx): global youtube attachments = ctx.message.attachments diff --git a/src/main/misc/checks.py b/src/main/misc/checks.py index 3ffcd07..47c1c6b 100644 --- a/src/main/misc/checks.py +++ b/src/main/misc/checks.py @@ -11,7 +11,6 @@ from discord.ext.commands import errors as errext from utils import utils as u owner_id = u.config['owner_id'] -listed_ids = u.config['listed_ids'] def is_owner(): @@ -32,12 +31,6 @@ def is_mod(): return commands.check(predicate) -def is_listed(): - def predicate(ctx): - return ctx.message.author.id in listed_ids - return commands.check(predicate) - - def owner(ctx): return ctx.message.author.id == owner_id