From 5174da59aa31212fcd002b7e069985df8b8740f6 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Thu, 19 Dec 2019 04:35:17 +0300 Subject: [PATCH] Limit .cox to ot and staff --- cogs/imagemanip.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/imagemanip.py b/cogs/imagemanip.py index 88b78ae..abf4412 100644 --- a/cogs/imagemanip.py +++ b/cogs/imagemanip.py @@ -1,6 +1,7 @@ import discord from discord.ext import commands from discord.ext.commands import Cog +from helpers.checks import check_if_staff_or_ot import textwrap import PIL.Image import PIL.ImageFilter @@ -13,7 +14,8 @@ class ImageManip(Cog): def __init__(self, bot): self.bot = bot - @commands.command() + @commands.check(check_if_staff_or_ot) + @commands.command(hidden=True) async def cox(self, ctx, *, headline: str): """Gives a cox headline""" mention = ctx.author.mention