diff options
author | 2021-08-26 15:30:54 -0400 | |
---|---|---|
committer | 2021-08-26 15:30:54 -0400 | |
commit | a6a0b3377eb800ab3c986d784b785501d5a5e60d (patch) | |
tree | 8d18c64839a665c28985003466b0be12776aeac4 /bot | |
parent | Change block comment style (diff) |
Use MODERATION_ROLES for stop command
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/evergreen/duck_game.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index d6358837..b83d5951 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -12,7 +12,7 @@ from PIL import Image, ImageDraw, ImageFont from discord.ext import commands from bot.bot import Bot -from bot.constants import Colours, Roles +from bot.constants import Colours, MODERATION_ROLES from bot.utils.decorators import with_role @@ -318,7 +318,7 @@ class DuckGamesDirector(commands.Cog): await self.send_help_embed(ctx) @start_game.command(name="stop") - @with_role(Roles.moderator) + @with_role(*MODERATION_ROLES) async def stop_game(self, ctx: commands.Context) -> None: """Stop a currently running game. Only available to mods.""" try: |