mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/users/user.ts
|
|
|
|
|
|
import { DiscordPremiumTypes } from "./premium_types.ts";
|
|
import { DiscordUserFlags } from "./user_flags.ts";
|
|
|
|
/** https://discord.com/developers/docs/resources/user#user-object */
|
|
export interface User {
|
|
/** The user's id */
|
|
id: string;
|
|
/** The user's username, not unique across the platform */
|
|
username: string;
|
|
/** The user's 4-digit discord-tag */
|
|
discriminator: string;
|
|
/** The user's avatar hash */
|
|
avatar: string | null;
|
|
/** Whether the user belongs to an OAuth2 application */
|
|
bot?: boolean;
|
|
/** Whether the user is an Official Discord System user (part of the urgent message system) */
|
|
system?: boolean;
|
|
/** Whether the user has two factor enabled on their account */
|
|
mfaEnabled?: boolean;
|
|
/** The user's chosen language option */
|
|
locale?: string;
|
|
/** Whether the email on this account has been verified */
|
|
verified?: boolean;
|
|
/** The user's email */
|
|
email?: string | null;
|
|
/** The flags on a user's account */
|
|
flags?: DiscordUserFlags;
|
|
/** The type of Nitro subscription on a user's account */
|
|
premiumType?: DiscordPremiumTypes;
|
|
/** The public flags on a user's account */
|
|
publicFlags?: DiscordUserFlags;
|
|
}
|