Skip to content

Commit a4d2db8

Browse files
committed
Change from username to displayName
This fixes the issue where we show the username instead of the displayName. Also removes the extra tagging fiasco!
1 parent f4e85c2 commit a4d2db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord-scripts/ai-thread-summarizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export default async function threadSummarizer(
214214
}
215215

216216
const formattedMessages = messages
217-
.map((m: Message) => `${m.author.username}: ${m.content}`)
217+
.map((m: Message) => `${m.member?.displayName ?? m.author.displayName ?? m.author.username}: ${m.content}`)
218218
.reverse()
219219
.join("\n")
220220

0 commit comments

Comments
 (0)