Method Mention
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Mention(DiscordUser, bool)
Creates a mention for specified user or member. Can optionally specify to resolve nicknames.
public static string Mention(this DiscordUser user, bool nickname = false)
Parameters
userDiscordUserUser to create mention for.
nicknameboolWhether the mention should resolve nicknames or not.
Returns
- string
Formatted mention.
Mention(DiscordChannel)
Creates a mention for specified channel.
public static string Mention(this DiscordChannel channel)
Parameters
channelDiscordChannelChannel to mention.
Returns
- string
Formatted mention.
Mention(DiscordRole)
Creates a mention for specified role.
public static string Mention(this DiscordRole role)
Parameters
roleDiscordRoleRole to mention.
Returns
- string
Formatted mention.