diff --git a/src/structures/Interaction.js b/src/structures/Interaction.js index 4095df8..393fb60 100644 --- a/src/structures/Interaction.js +++ b/src/structures/Interaction.js @@ -69,6 +69,12 @@ class Interaction extends Base { */ this.version = data.version; + /** + * Set of permissions the application or bot has within the channel the interaction was sent from + * @type {?Readonly} + */ + this.appPermissions = data.app_permissions ? new Permissions(data.app_permissions).freeze() : null; + /** * The permissions of the member, if one exists, in the channel this interaction was executed in * @type {?Readonly} diff --git a/typings/index.d.ts b/typings/index.d.ts index 92371dc..bba08ee 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1453,6 +1453,7 @@ export class Interaction extends Base { public type: InteractionType; public user: User; public version: number; + public appPermissions: Readonly | null; public memberPermissions: CacheTypeReducer>; public locale: string; public guildLocale: CacheTypeReducer;