swc/bundler/tests/.cache/deno/fe2fab16a34ca5c14e26aa9277a48935e47a7066.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

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;
}