Method Mention
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
Mention(DiscordUser, bool)
Creates a mention for specified user or member. Can optionally specify to resolve nicknames.
public static string Mention(DiscordUser user, bool nickname = false)
Parameters
user
DiscordUserUser to create mention for.
nickname
boolWhether the mention should resolve nicknames or not.
Returns
- string
Formatted mention.
Mention(DiscordChannel)
Creates a mention for specified channel.
public static string Mention(DiscordChannel channel)
Parameters
channel
DiscordChannelChannel to mention.
Returns
- string
Formatted mention.
Mention(DiscordRole)
Creates a mention for specified role.
public static string Mention(DiscordRole role)
Parameters
role
DiscordRoleRole to mention.
Returns
- string
Formatted mention.
Mention(DiscordApplicationCommand)
Creates a mention for specified application command.
public static string Mention(DiscordApplicationCommand command)
Parameters
command
DiscordApplicationCommandApplication command to mention.
Returns
- string
Formatted mention.