class Tourmaline::MessageReactionUpdated
- Tourmaline::MessageReactionUpdated
- Reference
- Object
Overview
This object represents a change of a reaction on a message performed by a user.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(chat : Tourmaline::Chat, message_id : Int32 | Int64, date : Time, old_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, new_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, user : Tourmaline::User | Nil = nil, actor_chat : Tourmaline::Chat | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#actor_chat : Tourmaline::Chat | Nil
Optional.
-
#actor_chat=(actor_chat : Tourmaline::Chat | Nil)
Optional.
-
#chat : Tourmaline::Chat
The chat containing the message the user reacted to
-
#chat=(chat : Tourmaline::Chat)
The chat containing the message the user reacted to
- #date : Time
- #date=(date : Time)
-
#message_id : Int32 | Int64
Unique identifier of the message inside the chat
-
#message_id=(message_id : Int32 | Int64)
Unique identifier of the message inside the chat
-
#new_reaction : Array(Tourmaline::ReactionType)
New list of reaction types that have been set by the user
-
#new_reaction=(new_reaction : Array(Tourmaline::ReactionType))
New list of reaction types that have been set by the user
-
#old_reaction : Array(Tourmaline::ReactionType)
Previous list of reaction types that were set by the user
-
#old_reaction=(old_reaction : Array(Tourmaline::ReactionType))
Previous list of reaction types that were set by the user
-
#user : Tourmaline::User | Nil
Optional.
-
#user=(user : Tourmaline::User | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
New list of reaction types that have been set by the user
New list of reaction types that have been set by the user
Previous list of reaction types that were set by the user
Previous list of reaction types that were set by the user
Optional. The user that changed the reaction, if the user isn't anonymous
Optional. The user that changed the reaction, if the user isn't anonymous