Skip to content

Use username over username#discrim in thread name #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down Expand Up @@ -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(
Expand Down