Language

MessageReactionHandler Delegate

Definition

Delegate for handling message reaction activities.

public delegate System.Threading.Tasks.Task MessageReactionHandler(Context<MessageReactionActivity> context, CancellationToken cancellationToken = default);
type MessageReactionHandler = delegate of Context<MessageReactionActivity> * CancellationToken -> Task
Public Delegate Function MessageReactionHandler(context As Context(Of MessageReactionActivity), Optional cancellationToken As CancellationToken = Nothing) As Task 

Parameters

context
Context<MessageReactionActivity>

The context for the message reaction activity.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Return Value

A task representing the asynchronous operation.

Applies to