Represents a Discord user.

Constructors

  • Constructs a new User object.

    Parameters

    • client: Client

      The client instance managing this user.

    • data: any

      The raw data from the API representing the user.

    Returns User

Properties

accentColor?: number
avatar?: string
avatarDecorationData?: any
banner?: string
bot?: boolean
discriminator: string
email?: string
flags?: number
globalName?: string
id: string
locale?: string
mfaEnabled?: boolean
premiumType?: number
publicFlags?: number
system?: boolean
username: string
verified?: boolean