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 from typing import Any
import discord import discord
from redbot.core import Config, commands from redbot.core import Config, commands, checks
from redbot.core.bot import Red from redbot.core.bot import Red
Cog: Any = getattr(commands, "Cog", object) Cog: Any = getattr(commands, "Cog", object)
@ -30,6 +30,7 @@ class InfoChannel(Cog):
self.config.register_guild(**default_guild) self.config.register_guild(**default_guild)
@commands.command() @commands.command()
@checks.admin()
async def infochannel(self, ctx: commands.Context): async def infochannel(self, ctx: commands.Context):
""" """
Toggle info channel for this server Toggle info channel for this server