From 3a978f347cee027dd50862542c358ab9301b09be Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 2 Oct 2021 12:41:30 +0100 Subject: [PATCH] types(Vanity): Make `uses` non-nullable (#6715) --- src/structures/Guild.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 0988a5f32..8379b88c6 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -617,7 +617,7 @@ class Guild extends AnonymousGuild { * An object containing information about a guild's vanity invite. * @typedef {Object} Vanity * @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 */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index 791a0060d..59350c7e8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4812,7 +4812,7 @@ export type UserResolvable = User | Snowflake | Message | GuildMember | ThreadMe export interface Vanity { code: string | null; - uses: number | null; + uses: number; } export type VerificationLevel = keyof typeof VerificationLevels;