aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/reaction_t.mli
blob: 6c2782ad3441ed1578cb07c4beb5d282a77525c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(** Represents a single reaction as received over the gateway. *)
type reaction_event = {
    user_id: User_id_t.t;
    channel_id: Channel_id_t.t;
    message_id: Message_id.t;
    guild_id: Guild_id_t.t option;
    emoji: Emoji.partial_emoji;
} [@@deriving sexp, yojson]

(** Represents a number of emojis used as a reaction on a message. *)
type t = {
    count: int;
    emoji: Emoji.t;
} [@@deriving sexp, yojson]