From 6c2242f4f970b1c75c243f74ae64f30ecbf8ba0d Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:02:22 +0100 Subject: [PATCH] types(BaseInteraction): `appPermissions` not `null` in guilds (#9601) types(BaseInteraction): allow `appPermissions` only in guilds Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- 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 5c7264488f7f..27fd856715c0 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;