From c276b445caed7b983d5e1726c4bc52ae638bd984 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Fri, 1 Sep 2023 14:48:24 +0530 Subject: [PATCH] discord: add ReactionCountDetails struct --- discord/message.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discord/message.go b/discord/message.go index 61868c4..5e170c2 100644 --- a/discord/message.go +++ b/discord/message.go @@ -460,8 +460,18 @@ type Attachment struct { type Reaction struct { // Count is the amount of times the emoji has been used to react. Count int `json:"count"` + // CountDetails contains burst (super) and normal reactions count. + CountDetails ReactionCountDetails `json:"count_details"` // Me specifies whether the current user reacted using this emoji. Me bool `json:"me"` // Emoji contains emoji information. Emoji Emoji `json:"emoji"` } + +// https://discord.com/developers/docs/resources/channel#reaction-count-details-object +type ReactionCountDetails struct { + // Burst is the count of super reactions. + Burst int `json:"burst"` + // Normal is the count of normal reactions. + Normal int `json:"normal"` +}