minor change to /lfm to make 'type' a dropdown choice

This commit is contained in:
zeragonii 2024-10-21 19:07:56 +00:00
parent 27debbcd6b
commit c0f40634a7
1 changed files with 4 additions and 0 deletions

4
bot.py
View File

@ -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