Skip to content

Commit

Permalink
fix: someone-tag showing username instead of displayname (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisterfurz007 authored Jun 1, 2023
1 parent 0754a58 commit 5abc0e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/programs/someone-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ const sendMessage = async (
question: string,
channel: TextChannel
) => {
const authorMember = await channel.guild.members.fetch(author);

const webhook = await channel.createWebhook({
name: author.username,
name: authorMember.displayName,
avatar: author.avatarURL({ extension: "png" }),
});
await webhook.send(`<@${target.id}> ${question}`);
Expand Down

0 comments on commit 5abc0e5

Please sign in to comment.