useReactions
Introduction
The useReactions
hook is used to add or remove reactions on a message. You can use this to manage reactions when creating a custom UI for Message.
Property | Type | Description |
---|---|---|
addReaction | OneArgVoidReturns <EmojiData> | Function to add a reaction to a message. |
removeReaction | OneArgVoidReturns <string> | Function to remove a reaction by its ID. |
Reference
For reference checkout this file