From 0c65d40af00499233830ce272a2a274bcd5b9e8c Mon Sep 17 00:00:00 2001 From: Vitor Date: Wed, 29 Jun 2022 19:17:57 +0100 Subject: [PATCH] feat(APIBaseInteraction): add `app_permissions` (#509) --- deno/payloads/v10/_interactions/base.ts | 4 ++++ deno/payloads/v9/_interactions/base.ts | 4 ++++ payloads/v10/_interactions/base.ts | 4 ++++ payloads/v9/_interactions/base.ts | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/deno/payloads/v10/_interactions/base.ts b/deno/payloads/v10/_interactions/base.ts index debd6c7a..4dbede20 100644 --- a/deno/payloads/v10/_interactions/base.ts +++ b/deno/payloads/v10/_interactions/base.ts @@ -104,6 +104,10 @@ export interface APIBaseInteraction { * For components, the message they were attached to */ message?: APIMessage; + /** + * Bitwise set of permissions the app or bot has within the channel the interaction was sent from + */ + app_permissions?: Permissions; /** * The selected language of the invoking user */ diff --git a/deno/payloads/v9/_interactions/base.ts b/deno/payloads/v9/_interactions/base.ts index 78e885d7..ffe53ff9 100644 --- a/deno/payloads/v9/_interactions/base.ts +++ b/deno/payloads/v9/_interactions/base.ts @@ -104,6 +104,10 @@ export interface APIBaseInteraction { * For components, the message they were attached to */ message?: APIMessage; + /** + * Bitwise set of permissions the app or bot has within the channel the interaction was sent from + */ + app_permissions?: Permissions; /** * The selected language of the invoking user */ diff --git a/payloads/v10/_interactions/base.ts b/payloads/v10/_interactions/base.ts index a91df6c1..8bca6793 100644 --- a/payloads/v10/_interactions/base.ts +++ b/payloads/v10/_interactions/base.ts @@ -104,6 +104,10 @@ export interface APIBaseInteraction { * For components, the message they were attached to */ message?: APIMessage; + /** + * Bitwise set of permissions the app or bot has within the channel the interaction was sent from + */ + app_permissions?: Permissions; /** * The selected language of the invoking user */ diff --git a/payloads/v9/_interactions/base.ts b/payloads/v9/_interactions/base.ts index 15284708..774e53be 100644 --- a/payloads/v9/_interactions/base.ts +++ b/payloads/v9/_interactions/base.ts @@ -104,6 +104,10 @@ export interface APIBaseInteraction { * For components, the message they were attached to */ message?: APIMessage; + /** + * Bitwise set of permissions the app or bot has within the channel the interaction was sent from + */ + app_permissions?: Permissions; /** * The selected language of the invoking user */