Class DiscordUserExtensions
Contains all the extensions methods for IDiscordUser.
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Extensions
Assembly: Color-Chan.Discord.Core.dll
Syntax
public static class DiscordUserExtensions
Methods
| Improve this Doc View SourceMention(IDiscordUser, Boolean)
Get a string mentioning a specific user
.
Declaration
public static string Mention(this IDiscordUser user, bool useNickname = true)
Parameters
Type | Name | Description |
---|---|---|
IDiscordUser | user | The IDiscordUser that will be mentioned. |
Boolean | useNickname | Whether or not the mention with the nickname of the user. |
Returns
Type | Description |
---|---|
String | A String containing the mentioned |