seyfert
    Preparing search index...

    Class ClientUser

    Represents a client user that extends the base User class. This class is used to interact with the authenticated user.

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates an instance of ClientUser.

      Parameters

      • client: UsingClient

        The client instance used for making API requests.

      • data: APIUser

        The user data received from the gateway.

      • application: Pick<APIApplication, "id" | "flags">

        The application data received from the gateway.

      Returns ClientUser

    Properties

    accentColor?: number | null
    application: Pick<APIApplication, "id" | "flags">

    The application data received from the gateway.

    avatar: string | null
    avatarDecorationData?: { asset: string; skuId: string } | null
    banner?: string | null
    bot: boolean = true

    Indicates if the user is a bot.

    client: UsingClient
    discriminator: string
    email?: string | null
    flags?: UserFlags
    globalName: string | null
    id: string
    locale?: string
    mfaEnabled?: boolean
    premiumType?: UserPremiumType
    primaryGuild?: {
        badge: string | null;
        identityEnabled: boolean | null;
        identityGuildId: string | null;
        tag: string | null;
    }
    publicFlags?: UserFlags
    system?: boolean
    username: string
    verified?: boolean

    Accessors

    Methods

    • Edits the current user data.

      Parameters

      • body: RESTPatchAPICurrentUserJSONBody

        The data to update the user with.

      Returns Promise<ClientUser>

      A promise that resolves to the updated ClientUserStructure.

    • Returns ReturnCache<
          | Omit<GatewayPresenceUpdate, "user"> & { id: string; user_id: string } & {
              guild_id: string;
          }
          | undefined,
      >

    • Parameters

      • body: Omit<
            RESTPostAPIChannelMessageJSONBody,
            "components"
            | "content"
            | "embeds"
            | "poll",
        > & SendResolverProps

      Returns Promise<Message>