Skip to content

Commit 4816e50

Browse files
committed
Properly generate mentions in occupied help embed
1 parent 4d51ec2 commit 4816e50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/modules/helpchan.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ This channel will be dedicated to answering your question only. Others will try
4141
For more tips, check out StackOverflow's guide on **[asking good questions](https://stackoverflow.com/help/how-to-ask)**.
4242
`;
4343

44-
const occupiedMessage = (tag: string) => `
45-
**This channel is claimed by @${tag}**
44+
const occupiedMessage = (asker: User) => `
45+
**This channel is claimed by ${asker.toString()}**
4646
4747
This channel is dedicated to answering their question only (and any of their follow-up questions). Others will try to answer and help solve the issue.
4848
49-
**To @${tag}, keep in mind:**
49+
**To ${asker.toString()}, keep in mind:**
5050
• It's always ok to just ask your question. You don't need permission.
5151
• Explain what you expect to happen and what actually happens.
5252
• Include a code sample and error message, if you got any.
@@ -83,11 +83,11 @@ export class HelpChanModule extends Module {
8383

8484
occupiedEmbed(asker: User) {
8585
return new MessageEmbed(this.OCCUPIED_EMBED_BASE)
86-
.setDescription(occupiedMessage(asker.tag))
86+
.setDescription(occupiedMessage(asker))
8787
.setFooter(
8888
`Closes after ${
8989
dormantChannelTimeout / 60 / 60 / 1000
90-
} hours of inactivity or when ${asker.username} sends !close.`,
90+
} hours of inactivity or when ${asker.toString()} sends !close.`,
9191
);
9292
}
9393

0 commit comments

Comments
 (0)