updates.presence: A Function which is being used to update the client's...

Description Usage Arguments Resource Warning Examples

View source: R/api_updateclient.r

Description

A Function which is being used to update the client's presence

Usage

1
updates.presence(client, presence)

Arguments

client

The client object

presence

The presence object (named list)

Resource

See https://discordapp.com/developers/docs/topics/gateway#update-status

Warning

Sending malformed payload will result in errors! don't panick :)

Examples

1
2
## Not run: update.presence(client, list(game=list(name="Hey!", type=0)))
## Not run: update.presence(client, list(game=list(name="Streaming!", type=1, url="https://twitch.tv/theonlyartz")))

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