Class DiscordUserExtensions
Contains all the extensions methods for IDiscordUser.
Inheritance
System.Object
DiscordUserExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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. |
System.Boolean | useNickname | Whether or not the mention with the nickname of the user. |
Returns
Type | Description |
---|---|
System.String | A System.String containing the mentioned |