From 09f01dafb01c78b04c6dcf4f35d4538155c6ed48 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Sun, 15 Mar 2020 14:15:31 +0100 Subject: Deseasonify: lock branding commands to moderation roles --- bot/seasons/branding.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/seasons/branding.py b/bot/seasons/branding.py index 0295a131..a9b6234c 100644 --- a/bot/seasons/branding.py +++ b/bot/seasons/branding.py @@ -9,7 +9,8 @@ import discord from discord.ext import commands from bot.bot import SeasonalBot -from bot.constants import Client +from bot.constants import Client, MODERATION_ROLES +from bot.decorators import with_role from bot.seasons import SeasonBase, get_current_season, get_season log = logging.getLogger(__name__) @@ -255,6 +256,7 @@ class BrandingManager(commands.Cog): await self.cycle() + @with_role(*MODERATION_ROLES) @commands.group(name="branding") async def branding_cmds(self, ctx: commands.Context) -> None: """Group for commands allowing manual control of the `SeasonManager` cog.""" -- cgit v1.2.3