addReaction

fun BaseChannel.addReaction(message: BaseMessage, key: String, handler: ResultHandler<ReactionEvent>?)

Add reaction

Since

4.15.0

Parameters

message

The message to add reaction

key

The key of the reaction

handler

The handler for the result


suspend fun BaseChannel.addReaction(message: BaseMessage, key: String): ReactionEvent

Deprecated

As of 4.17.0, replaced with awaitAddReaction(message, key).

Replace with

awaitAddReaction(message, key)

Add reaction

Return

The reaction event

Since

4.15.0

Parameters

message

The message to add reaction

key

The reaction key to add