#Mentioning user in slash command not highlighting message for them

1 messages · Page 1 of 1 (latest)

hollow sand
#

Hello asking for a friend (Im done making bots)
how to make message highlighted when mentioning user

Here is relevant code

 [SlashCommand("ping", "ping Him")]
    public async Task Ping(SocketGuildUser user)
    {
        await Context.Interaction.DeferAsync();
        await Context.Interaction.FollowupAsync(user.Mention, allowedMentions: AllowedMentions.All);
    }
}```
#

Should be highlighted like on this image

#

Instead it looks like this

bleak lynx
# hollow sand Instead it looks like this

I came across this just the other day followup doesnt actually highlight for some reason even if you specify the allowed mentions, but respond async does. Might be a bug not sure.

#

Use RespondAsync not Defer + Followup

hollow sand
#

Indeed it does work

bleak lynx
#

For these small commands its fine, defer is useful when doing long running commands

hollow sand
#

yes i know that its just my buddy wanted one method so chose to wrap it around defer and followup

#

anyways thanks