View Source Nostrum.Struct.Event.MessageReactionAdd (Nostrum v0.6.1)

Sent when a user adds a reaction to a message

Link to this section Summary

Types

Channel in which the reaction was added

The (partial) emoji used to react

Guild ID in which the reaction was added, if applicable

The member who reacted, if this happened on a guild

Message to which the reaction was added

t()

Event sent when a user adds a reaction to a message

ID of the user who added the reaction

Link to this section Types

Specs

channel_id() :: Nostrum.Struct.Channel.id()

Channel in which the reaction was added

Specs

emoji() :: Nostrum.Struct.Emoji.t()

The (partial) emoji used to react

Specs

guild_id() :: Nostrum.Struct.Guild.id() | nil

Guild ID in which the reaction was added, if applicable

Specs

member() :: Nostrum.Struct.Guild.Member.t() | nil

The member who reacted, if this happened on a guild

Specs

message_id() :: Nostrum.Struct.Message.id()

Message to which the reaction was added

Specs

t() :: %Nostrum.Struct.Event.MessageReactionAdd{
  channel_id: channel_id(),
  emoji: emoji(),
  guild_id: guild_id(),
  member: member(),
  message_id: message_id(),
  user_id: user_id()
}

Event sent when a user adds a reaction to a message

Specs

user_id() :: Nostrum.Struct.User.id()

ID of the user who added the reaction