events.message_reaction_add: Event, emitted whenever a reaction is being attached to a...

Description Usage Arguments Examples

View source: R/events_messagereactionadd.r

Description

Event, emitted whenever a reaction is being attached to a message

Usage

1

Arguments

data

The event fields

client

The client object

Examples

1
2
3
4
5
6
## Not run: 
client$emitter$on("MESSAGE_REACTION_ADD", function(message, reaction) {
 cat(reaction$emoji$name, "has been added to", message$content)
})

## End(Not run)

TheOnlyArtz/Pirate documentation built on Oct. 31, 2019, 12:12 a.m.