Admin only

This commit is contained in:
bobloy 2018-10-15 16:42:51 -04:00
parent 8667412ba8
commit 301075af03

View File

@ -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