mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
change: proper example for interfaces
This commit is contained in:
+18
-3
@@ -46,18 +46,33 @@
|
||||
Example:
|
||||
|
||||
```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;
|
||||
email?: string;
|
||||
flags?: number;
|
||||
premiumType?: number;
|
||||
/** 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;
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user