Skip to content

Commit

Permalink
fix: use username not tag on mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzDerock committed Sep 29, 2022
1 parent dc31933 commit ac1e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/renderers/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function renderASTNode(node: SingleASTNode, context: RenderContentC
const id = node.id as string;
const user = await context.callbacks.resolveUser(id);

return <DiscordMention type="user">{user ? user.tag : `Unknown User (${id})`}</DiscordMention>;
return <DiscordMention type="user">{user ? user.username : `Unknown User (${id})`}</DiscordMention>;
}

case 'here':
Expand Down

0 comments on commit ac1e46e

Please sign in to comment.