aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-15 14:15:31 +0100
committerGravatar kwzrd <[email protected]>2020-03-15 14:15:31 +0100
commit09f01dafb01c78b04c6dcf4f35d4538155c6ed48 (patch)
treeb7217a1f8b05ee9b51b556e53ba6057e13726f35
parentDeseasonify: use more descriptive name for `Record` namedtuple (diff)
Deseasonify: lock branding commands to moderation roles
-rw-r--r--bot/seasons/branding.py4
1 files changed, 3 insertions, 1 deletions
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."""