From c0f40634a70e1f049272439a4a5ea88db1fa60b1 Mon Sep 17 00:00:00 2001 From: zeragonii Date: Mon, 21 Oct 2024 19:07:56 +0000 Subject: [PATCH] minor change to /lfm to make 'type' a dropdown choice --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 093fcf7..7e4010f 100644 --- a/bot.py +++ b/bot.py @@ -60,6 +60,10 @@ async def on_ready(): dungeon="Name of the dungeon", level="Keystone level" ) +@app_commands.choices(type=[ + app_commands.Choice(name="Pushing", value="pushing"), + app_commands.Choice(name="Completion", value="completion") +]) async def lfm(interaction: discord.Interaction, type: str, dungeon: str, level: int): # The ID of the allowed channel allowed_channel_id = 1297217492699320462 # Replace this with the correct channel ID