aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/reaction_t.mli
blob: db955210baf78780d9d07976d2b8a4c742d6263f (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: Snowflake.t;
    channel_id: Snowflake.t;
    message_id: Snowflake.t;
    guild_id: Snowflake.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]