From 1f740574d8e4a561847f001b2e31e4e670493d9b Mon Sep 17 00:00:00 2001 From: Luke R Date: Mon, 10 Mar 2025 10:59:41 -0700 Subject: [PATCH] Adding decorator so the trackdays command can be used anywhere --- app/cogs/trackdays.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/cogs/trackdays.py b/app/cogs/trackdays.py index c7233f3d..ca6e0711 100755 --- a/app/cogs/trackdays.py +++ b/app/cogs/trackdays.py @@ -32,6 +32,15 @@ class TrackDays(commands.Cog): guild_ids=None, name="trackdays", description="Look up upcoming trackdays", + contexts={ + discord.InteractionContextType.guild, + discord.InteractionContextType.bot_dm, + discord.InteractionContextType.private_channel, + }, + integration_types={ + discord.IntegrationType.guild_install, + discord.IntegrationType.user_install, + }, ) async def trackdays_lookup( self,