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?: null | number
    application: Pick<APIApplication, "id" | "flags">

    The application data received from the gateway.

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

    Indicates if the user is a bot.

    client: UsingClient
    discriminator: string
    email?: null | string
    flags?: UserFlags
    globalName: null | string
    id: string
    locale?: string
    mfaEnabled?: boolean
    premiumType?: UserPremiumType
    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<
          | undefined
          | Omit<GatewayPresenceUpdate, "user"> & { id: string; user_id: string } & {
              guild_id: string;
          },
      >

    • Parameters

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

      Returns Promise<Message>