From ba7877578d1b16b8567a1d3120ba038912d769d4 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 27 May 2023 00:42:24 +0100 Subject: [PATCH] types(BaseInteraction): allow `appPermissions` only in guilds --- packages/discord.js/typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index c96a54f37db8..277b6fa794e0 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1764,7 +1764,7 @@ export class BaseInteraction extends Base public type: InteractionType; public user: User; public version: number; - public appPermissions: Readonly | null; + public appPermissions: CacheTypeReducer>; public memberPermissions: CacheTypeReducer>; public locale: Locale; public guildLocale: CacheTypeReducer;