Skip to content

Commit

Permalink
feat(interactions): application permissions (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jul 2, 2022
1 parent f446e06 commit 033c07d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interactions.go
Expand Up @@ -207,6 +207,9 @@ type Interaction struct {
// NOTE: this field is only filled when a button click triggered the interaction. Otherwise it will be nil.
Message *Message `json:"message"`

// Bitwise set of permissions the app or bot has within the channel the interaction was sent from
AppPermissions int64 `json:"app_permissions,string"`

// The member who invoked this interaction.
// NOTE: this field is only filled when the slash command was invoked in a guild;
// if it was invoked in a DM, the `User` field will be filled instead.
Expand Down

0 comments on commit 033c07d

Please sign in to comment.