From 301075af034e72d7203c7079e8dfcbd2bc78f6d7 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 15 Oct 2018 16:42:51 -0400 Subject: [PATCH] Admin only --- infochannel/infochannel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index f6b3ff0..829d4c3 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -1,7 +1,7 @@ from typing import Any import discord -from redbot.core import Config, commands +from redbot.core import Config, commands, checks from redbot.core.bot import Red Cog: Any = getattr(commands, "Cog", object) @@ -30,6 +30,7 @@ class InfoChannel(Cog): self.config.register_guild(**default_guild) @commands.command() + @checks.admin() async def infochannel(self, ctx: commands.Context): """ Toggle info channel for this server