Lately, I've been experimenting with Discord.js and Typescript and came across an issue while trying to create a simple command that pings the user. However, instead of pinging them, it only mentions their username.
Below is the code snippet I'm struggling with:
run: async (client: Client, interaction: CommandInteraction) => {
const content = `${interaction.member?.user}`;
await interaction.followUp({
content
});
}
The message that gets sent does include a mention which is clickable, but unfortunately, the mentioned user's name isn't highlighted. I even attempted mentioning by Discord ID directly, but encountered the same issue (a clickable mention without highlighting or notification). Any suggestions on how to resolve this?