From 1626a41f8050910213b563e32fdc1b99854274e2 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 28 Jun 2023 09:31:20 +0200 Subject: [PATCH 1/2] Use username over username#discrim in thread name --- cogs/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/help.py b/cogs/help.py index 3d0c98b..1595a36 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -133,7 +133,7 @@ def __init__(self, help_type: str, *, style: ButtonStyle, custom_id: str): async def create_help_thread(self, interaction: Interaction) -> Thread: thread = await interaction.channel.create_thread( - name=f"{self._help_type} help ({interaction.user})", + name=f"{self._help_type} help ({interaction.user.name})", type=ChannelType.public_thread, ) From 83efc2e3df25b65a694415041e3ce9c18afabdd8 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 28 Jun 2023 09:37:27 +0200 Subject: [PATCH 2/2] Also in transfer command --- cogs/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/help.py b/cogs/help.py index 1595a36..2aea975 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -385,7 +385,7 @@ async def transfer(self, ctx, *, new_author: Member): first_thread_message = (await ctx.channel.history(limit=1, oldest_first=True).flatten())[0] old_author = first_thread_message.mentions[0] - await ctx.channel.edit(name=f"{topic} ({new_author})") + await ctx.channel.edit(name=f"{topic} ({new_author.name})") await first_thread_message.edit(content=new_author.mention) # Send log embed_log = Embed(