From 033c07d89d5824c0fba4f85471b29d578ccb7f30 Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sat, 2 Jul 2022 23:24:07 +0300 Subject: [PATCH] feat(interactions): application permissions (#1206) --- interactions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interactions.go b/interactions.go index 28454a1..21df6eb 100644 --- a/interactions.go +++ b/interactions.go @@ -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.