Interface ITokenInfo

Extended user information with additional token details.

interface ITokenInfo {
    accent_color: number;
    avatar: null | string;
    avatar_decoration_data:
        | null
        | { asset: string; expires_at: null
        | number; sku_id: string };
    banner: null | string;
    banner_color: string;
    bio: string;
    bot?: boolean;
    clan: null | IClan;
    discriminator: string;
    email: null | string;
    flags: UserFlags;
    global_name: string;
    id: string;
    locale: ILocales;
    mfa_enabled: boolean;
    nsfw_allowed: boolean;
    phone: null | string;
    premium_type: UserPremiumType;
    primary_guild: null | IClan;
    public_flags: UserFlags;
    username: string;
    verified: boolean;
}

Hierarchy (View Summary)

Properties

accent_color: number

Hexadecimal accent color for the user's profile.

avatar: null | string

URL or null for the user's avatar.

avatar_decoration_data:
    | null
    | { asset: string; expires_at: null
    | number; sku_id: string }

Data about the user's avatar decorations.

Type declaration

  • null
  • { asset: string; expires_at: null | number; sku_id: string }
    • asset: string

      Asset URL for the decoration.

    • expires_at: null | number

      Expiration timestamp or null if it doesn't expire.

    • sku_id: string

      SKU ID for the decoration.

banner: null | string

Hash fr the user's banner.

banner_color: string

Hexadecimal banner color of the user's profile.

bio: string

Biography of the user.

bot?: boolean

Whether the user is a bot.

clan: null | IClan

Information about the user's clan, if applicable.

discriminator: string

Discriminator for the user (e.g., "1234").

email: null | string

Email address of the user, or null if not set.

flags: UserFlags

Flags for the user.

global_name: string

Global display name of the user.

id: string

User ID as a string.

locale: ILocales

Locale of the user.

mfa_enabled: boolean

Whether multi-factor authentication is enabled.

nsfw_allowed: boolean

Whether the user is allowed to view NSFW content.

phone: null | string

Phone number of the user, or null if not set.

premium_type: UserPremiumType

Premium type of the user.

primary_guild: null | IClan

Information about the user's primary guild, if applicable.

public_flags: UserFlags

Public flags associated with the user.

username: string

Username of the user.

verified: boolean

Whether the user's email is verified.