diff options
| author | 2018-08-01 04:06:26 +0100 | |
|---|---|---|
| committer | 2018-08-01 04:06:26 +0100 | |
| commit | 00ad0243c2ffe6ad19011137543faf6bcebd50f8 (patch) | |
| tree | 858828db1c037c3f59751217151fc795651b05f0 | |
| parent | Merge branch 'feature/reddit-channel' into 'master' (diff) | |
Restrict !roles to mods+
| -rw-r--r-- | bot/cogs/information.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/bot/cogs/information.py b/bot/cogs/information.py index ddc18fcf8..2390334d8 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -6,7 +6,8 @@ from dateutil.relativedelta import relativedelta  from discord import CategoryChannel, Colour, Embed, Member, TextChannel, VoiceChannel  from discord.ext.commands import Bot, Context, command -from bot.constants import Emojis, Keys, URLs +from bot.constants import Emojis, Keys, Roles, URLs +from bot.decorators import with_role  from bot.utils.time import humanize  log = logging.getLogger(__name__) @@ -23,6 +24,7 @@ class Information:          self.bot = bot          self.headers = {"X-API-Key": Keys.site_api} +    @with_role(Roles.owner, Roles.admin, Roles.moderator)      @command(name="roles")      async def roles_info(self, ctx: Context):          """ | 
