Search Results for

    Show / Hide Table of Contents

    Class KuracordMember

    Represents a Kuracord guild member.

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

    Properties

    | Improve this Doc View Source

    DisplayName

    Gets this member's display name.

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

    Guild

    Gets the guild of which this member is a part of.

    Declaration
    public KuracordGuild Guild { get; set; }
    Property Value
    Type Description
    KuracordGuild
    | Improve this Doc View Source

    IsOwner

    Gets whether this member is the Guild owner.

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

    JoinedAt

    Date the user joined the guild

    Declaration
    public DateTimeOffset JoinedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    Nickname

    Gets this member's nickname.

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

    User

    Gets the user associated with this member.

    Declaration
    public KuracordUser User { get; }
    Property Value
    Type Description
    KuracordUser

    Methods

    | Improve this Doc View Source

    Equals(KuracordMember)

    Checks whether this KuracordMember is equal to another KuracordMember.

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

    KuracordMember to compare to.

    Returns
    Type Description
    Boolean

    Whether the KuracordMember is equal to this KuracordMember.

    | Improve this Doc View Source

    Equals(Object)

    Checks whether this KuracordMember 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 KuracordMember.

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

    GetHashCode()

    Gets the hash code for this KuracordMember.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code for this KuracordMember.

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

    ModifyAsync(String)

    Modifies the member.

    Declaration
    public Task<KuracordMember> ModifyAsync(string nickname)
    Parameters
    Type Name Description
    String nickname

    New member nickname.

    Returns
    Type Description
    Task<KuracordMember>

    Modified member.

    Exceptions
    Type Condition
    UnauthorizedException

    Thrown when the client does not have the Administrator permission.

    NotFoundException

    Thrown when the member does not exist.

    BadRequestException

    Thrown when an invalid parameter was provided.

    ServerErrorException

    Thrown when Kuracord is unable to process the request.

    | Improve this Doc View Source

    RemoveAsync()

    Kicks this member from their guild.

    Declaration
    public Task RemoveAsync()
    Returns
    Type Description
    Task
    Exceptions
    Type Condition
    UnauthorizedException

    Thrown when the client does not have the KickMembers permission.

    NotFoundException

    Thrown when the member does not exist.

    BadRequestException

    Thrown when an invalid parameter was provided.

    ServerErrorException

    Thrown when Kuracord is unable to process the request.

    | Improve this Doc View Source

    ToString()

    Returns a string representation of this member.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representation of this member.

    Overrides
    Object.ToString()

    Operators

    | Improve this Doc View Source

    Equality(KuracordMember, KuracordMember)

    Gets whether the two KuracordMember objects are equal.

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

    First member to compare.

    KuracordMember e2

    Second member to compare.

    Returns
    Type Description
    Boolean

    Whether the two members are equal.

    | Improve this Doc View Source

    Inequality(KuracordMember, KuracordMember)

    Gets whether the two KuracordMember objects are not equal.

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

    First member to compare.

    KuracordMember e2

    Second member to compare.

    Returns
    Type Description
    Boolean

    Whether the two members are not equal.

    Implements

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