Update the thread name to have the members

This commit is contained in:
Marc Di Luzio 2024-08-12 19:29:47 +01:00
parent 3ea779f7f2
commit bebef9d38a
3 changed files with 8 additions and 4 deletions

View file

@ -202,7 +202,7 @@ class DynamicGroupButton(discord.ui.DynamicItem[discord.ui.Button],
# Set up a thread for this match if the bot has permissions to do so
if intrctn.channel.permissions_for(intrctn.guild.me).create_public_threads:
await intrctn.channel.create_thread(
name=f"{util.format_today()} Group {chr(65 + idx)}",
name=f"{util.format_list([m.display_name for m in group])}",
message=message,
reason="Creating a matching thread")