Search Results for

    Show / Hide Table of Contents

    Class DiscordUserExtensions

    Contains all the extensions methods for IDiscordUser.

    Inheritance
    Object
    DiscordUserExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Core.Extensions
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public static class DiscordUserExtensions

    Methods

    | Improve this Doc View Source

    Mention(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 user.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX