From 4a113d1c8880b65814a6c31c1882b3c0efc03083 Mon Sep 17 00:00:00 2001 From: Alexander Terry Date: Fri, 26 Jul 2024 10:11:34 -0800 Subject: [PATCH] add context allowances --- alexBot/cogs/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/alexBot/cogs/utils.py b/alexBot/cogs/utils.py index 6d56960..0def43a 100644 --- a/alexBot/cogs/utils.py +++ b/alexBot/cogs/utils.py @@ -30,6 +30,7 @@ class Utils(Cog): @app_commands.command() @app_commands.describe(dice="dice format in XdY. can be multiple sets, seperated by spaces") @app_commands.allowed_installs(guilds=True, users=True) + @app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True) async def roll(self, interaction: discord.Interaction, dice: str): """Rolls a dice in NdN format.""" roll_results: List[Roll] = []