another fix for thread creation.

This commit is contained in:
zeragonii 2024-10-21 19:03:43 +00:00
parent 974057cd58
commit 27debbcd6b
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -98,7 +98,7 @@ async def lfm(interaction: discord.Interaction, type: str, dungeon: str, level:
thread_name = f"{full_dungeon_name} - +{level} - {type.capitalize()}"
# Create the thread
thread = await interaction.channel.create_thread(name=thread_name, message=interaction.message)
thread = await interaction.channel.create_thread(name=thread_name, message=interaction.message,type=discord.ChannelType.public_thread)
# Tag the user in the message
user_mention = interaction.user.mention # This will mention the user