mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
types(Vanity): Make uses non-nullable (#6715)
This commit is contained in:
@@ -617,7 +617,7 @@ class Guild extends AnonymousGuild {
|
|||||||
* An object containing information about a guild's vanity invite.
|
* An object containing information about a guild's vanity invite.
|
||||||
* @typedef {Object} Vanity
|
* @typedef {Object} Vanity
|
||||||
* @property {?string} code Vanity invite code
|
* @property {?string} code Vanity invite code
|
||||||
* @property {?number} uses How many times this invite has been used
|
* @property {number} uses How many times this invite has been used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -4812,7 +4812,7 @@ export type UserResolvable = User | Snowflake | Message | GuildMember | ThreadMe
|
|||||||
|
|
||||||
export interface Vanity {
|
export interface Vanity {
|
||||||
code: string | null;
|
code: string | null;
|
||||||
uses: number | null;
|
uses: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type VerificationLevel = keyof typeof VerificationLevels;
|
export type VerificationLevel = keyof typeof VerificationLevels;
|
||||||
|
|||||||
Reference in New Issue
Block a user