User

Signature

export declare class User extends DiscordBase<APIUser>

Properties

tagGetter
get tag(): string;
nameGetter
get name(): string;
get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

bot?: boolean | undefined;
system?: boolean | undefined;
banner?: string | null | undefined;
locale?: string | undefined;
email?: string | null | undefined;
primaryGuild?: { identityGuildId: string | null; identityEnabled: boolean | null; tag: string | null; badge: string | null; } | null | undefined;

Methods

presence(guildId: string): ReturnCache<(Omit<GatewayPresenceUpdate, "user"> & {    id: string;    user_id: string;} & {    guild_id: string;}) | undefined>;

Gets the user's cached presence in a guild.

Parameters
guildId
The ID of the guild.
toString(): `<@${string}>`;

Returns a string representation of an object.