1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

discord: add ReactionCountDetails struct

This commit is contained in:
ayn2op 2023-09-01 14:48:24 +05:30 committed by Diamond
parent 4bc415f72b
commit c276b445ca

View file

@ -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"`
}