events.presence_update: Event, emitted whenever a user updates their presence

Description Usage Arguments Disclaimer Examples

View source: R/events_presenceupdate.r

Description

Event, emitted whenever a user updates their presence

Usage

1

Arguments

client

The client object

date

The event fields

Disclaimer

This event won't return the major argument (user in this case) as I still need to figure out an efficient GLOBAL caching system.

Examples

1
2
3
4
5
6
## Not run: 
client$emitter$on("PRESENCE_UPDATE", function(old_presence, new_presence, differences) {
 cat("New status:", new_presence$status, "Old status:", old_presence$status)
})

## End(Not run)

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