Table of Contents

Namespace Signal.Application.Reactions

Classes

OnReactionAttribute

Runs the method when someone reacts with one of the emojis, by default only to messages the bot's account sent (polls, approvals). Emojis match regardless of skin tone and variation selector, so 👍 also matches 👍🏽 and ❤ matches ❤️.

ReactionContext

Everything about a reaction that triggered an OnReactionAttribute method.

ReactionModule

Base class for reaction handlers: public methods with OnReactionAttribute. A new instance is created per reaction from the message's DI scope, so constructor injection works. Methods may take ReactionContext, Reaction and CancellationToken parameters and return Task, ValueTask or void.