From a6a0b3377eb800ab3c986d784b785501d5a5e60d Mon Sep 17 00:00:00 2001 From: Cam Caswell Date: Thu, 26 Aug 2021 15:30:54 -0400 Subject: Use MODERATION_ROLES for stop command --- bot/exts/evergreen/duck_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') 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: -- cgit v1.2.3