Interface IUserInfo

Represents detailed information about a Discord user.

interface IUserInfo {
    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;
    bot?: boolean;
    clan: null | IClan;
    discriminator: string;
    flags: UserFlags;
    global_name: string;
    id: string;
    primary_guild: null | IClan;
    public_flags: UserFlags;
    username: string;
}

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.

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").

flags: UserFlags

Flags for the user.

global_name: string

Global display name of the user.

id: string

User ID as a string.

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.