feat(interaction): add appPermissions (v13) (#8195)

This commit is contained in:
Almeida
2022-06-29 23:36:07 +01:00
committed by GitHub
parent 079973f1cf
commit 222fc9c679
2 changed files with 7 additions and 0 deletions

View File

@@ -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<Permissions>}
*/
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<Permissions>}