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

Sent when a user adds a reaction to a message

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

Types

Link to this type

channel_id()

View Source (since 0.5.0)
@type channel_id() :: Nostrum.Struct.Channel.id()

Channel in which the reaction was added

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

The (partial) emoji used to react

Link to this type

guild_id()

View Source (since 0.5.0)
@type guild_id() :: Nostrum.Struct.Guild.id() | nil

Guild ID in which the reaction was added, if applicable

Link to this type

member()

View Source (since 0.5.0)
@type member() :: Nostrum.Struct.Guild.Member.t() | nil

The member who reacted, if this happened on a guild

Link to this type

message_id()

View Source (since 0.5.0)
@type message_id() :: Nostrum.Struct.Message.id()

Message to which the reaction was added

@type 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

Link to this type

user_id()

View Source (since 0.5.0)
@type user_id() :: Nostrum.Struct.User.id()

ID of the user who added the reaction