diff options
| author | 2021-03-13 13:48:07 +0100 | |
|---|---|---|
| committer | 2021-03-13 13:48:32 +0100 | |
| commit | c7ecc27bb576f7fb717259702e8f7212eef92b29 (patch) | |
| tree | 021bb0049cbf8f7d278231d023120e9470df27a9 | |
| parent | Branding: implement command interface (diff) | |
Branding: lock commands to mods+ where necessary
| -rw-r--r-- | bot/exts/backend/branding/_cog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py index 0fd694bca..61ae46923 100644 --- a/bot/exts/backend/branding/_cog.py +++ b/bot/exts/backend/branding/_cog.py @@ -11,7 +11,7 @@ from async_rediscache import RedisCache from discord.ext import commands, tasks from bot.bot import Bot -from bot.constants import Branding as BrandingConfig, Channels, Colours, Guild +from bot.constants import Branding as BrandingConfig, Channels, Colours, Guild, MODERATION_ROLES from bot.decorators import mock_in_debug from bot.exts.backend.branding._repository import BrandingRepository, Event, RemoteObject @@ -380,6 +380,7 @@ class Branding(commands.Cog): """Show the current event description.""" await self.send_info_embed(ctx.channel.id) + @commands.has_any_role(*MODERATION_ROLES) @branding_group.command(name="sync") async def branding_sync_cmd(self, ctx: commands.Context) -> None: """Force branding synchronisation.""" @@ -396,6 +397,7 @@ class Branding(commands.Cog): # endregion # region: Command interface (branding daemon) + @commands.has_any_role(*MODERATION_ROLES) @branding_group.group(name="daemon", aliases=("d",)) async def branding_daemon_group(self, ctx: commands.Context) -> None: """Control the branding cog's daemon.""" |