Search Results for

    Show / Hide Table of Contents

    Class KuracordUser

    Inheritance
    Object
    SnowflakeObject
    KuracordUser
    Implements
    IEquatable<KuracordUser>
    Inherited Members
    SnowflakeObject.Id
    SnowflakeObject.CreationTimestamp
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: KSharpPlus.Entities.User
    Assembly: KSharpPlus.dll
    Syntax
    public class KuracordUser : SnowflakeObject

    Properties

    | Improve this Doc View Source

    AvatarUrl

    Gets the user's avatar URL.

    Declaration
    public string AvatarUrl { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Biography

    Gets the user's biography.

    Declaration
    public string Biography { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Disabled

    Gets whether the user is disabled. Only for the current user.

    Declaration
    public bool? Disabled { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Discriminator

    Gets the user's 4-digit discriminator.

    Declaration
    public string Discriminator { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Email

    Gets the user's email address. Only for the current user.

    Declaration
    public string Email { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Flags

    Gets the user's flags.

    Declaration
    public UserFlags? Flags { get; }
    Property Value
    Type Description
    Nullable<UserFlags>
    | Improve this Doc View Source

    GuildsMember

    Gets user's guilds. Only for the current user.

    Declaration
    public IReadOnlyList<KuracordMember>? GuildsMember { get; }
    Property Value
    Type Description
    Nullable<IReadOnlyList<KuracordMember>>
    | Improve this Doc View Source

    IsBot

    Gets whether the user is a bot.

    Declaration
    public bool IsBot { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsCurrent

    Gets whether this user is the Client which created this object.

    Declaration
    public bool IsCurrent { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Mention

    Gets the user's mention string.

    Declaration
    public string Mention { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PremiumType

    Gets the user's premium type. Only for the current user.

    Declaration
    public PremiumType? PremiumType { get; }
    Property Value
    Type Description
    Nullable<PremiumType>
    | Improve this Doc View Source

    Token

    Gets the user's token. This field will not be null only if the user was get from RegisterUserAsync(String, String, String, Boolean) method.

    Declaration
    public string Token { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Username

    Gets this user's username.

    Declaration
    public string Username { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Verified

    Gets whether the user is verified. Only for the current user.

    Declaration
    public bool? Verified { get; }
    Property Value
    Type Description
    Nullable<Boolean>

    Methods

    | Improve this Doc View Source

    Equals(KuracordUser)

    Checks whether this KuracordUser is equal to another KuracordUser.

    Declaration
    public bool Equals(KuracordUser e)
    Parameters
    Type Name Description
    KuracordUser e

    KuracordUser to compare to.

    Returns
    Type Description
    Boolean

    Whether the KuracordUser is equal to this KuracordUser.

    | Improve this Doc View Source

    Equals(Object)

    Checks whether this KuracordUser is equal to another object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    Object to compare to.

    Returns
    Type Description
    Boolean

    Whether the object is equal to this KuracordUser.

    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code for this KuracordUser.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code for this KuracordUser.

    Overrides
    Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Returns a string representation of this user.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representation of this user.

    Overrides
    Object.ToString()

    Operators

    | Improve this Doc View Source

    Equality(KuracordUser, KuracordUser)

    Gets whether the two KuracordUser objects are equal.

    Declaration
    public static bool operator ==(KuracordUser e1, KuracordUser e2)
    Parameters
    Type Name Description
    KuracordUser e1

    First user to compare.

    KuracordUser e2

    Second user to compare.

    Returns
    Type Description
    Boolean

    Whether the two users are equal.

    | Improve this Doc View Source

    Inequality(KuracordUser, KuracordUser)

    Gets whether the two KuracordUser objects are not equal.

    Declaration
    public static bool operator !=(KuracordUser e1, KuracordUser e2)
    Parameters
    Type Name Description
    KuracordUser e1

    First user to compare.

    KuracordUser e2

    Second user to compare.

    Returns
    Type Description
    Boolean

    Whether the two users are not equal.

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2023 KSharpPlus Contributors