Reaction
Interactions are more fun when you can express yourself! Let users react using emojis, stickers, or thumbs up to messages.
Reaction Query
To query for a list of all reactions on the specific message in a channel, one must utilise EkoMessageRepository
. We can observe this the same way as when we observe messages, the only thing difference is you will have to use messageId
as the parameter. The operation will return an instance EkoCollection
of EkoMessageReaction
that contains the reaction name, message id, reactor id and reactor display name of the user who reacted to the message.
This method will return a LiveObject of all reactions of specific message in the specified channel. You can observe the LiveObject in order to update your view whenever you receive new reaction on that message.
Add Reaction
For adding a new reaction, we can use EkoMessageReactor
to perform its operation. Initialize the reactor with the client and message and specify the reaction name.
Remove Reaction
In order to remove a new reaction, we can use EkoMessageReactor
. Initialize the reactor with the client, message and specify the reaction name.
Last updated