Skip to main content

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.

PropertyTypeDescription
addReactionOneArgVoidReturns<EmojiData>Function to add a reaction to a message.
removeReactionOneArgVoidReturns<string>Function to remove a reaction by its ID.

Reference

For reference checkout this file