mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added support for new game objects (#332)
bot.setStreaming(name, url, type, callback); added logic for Internal setStatus updated to check if string or object
This commit is contained in:
@@ -440,7 +440,7 @@ setStatus(status, `game`, `callback`)
|
||||
Sets the Discord Status of the Client
|
||||
|
||||
- **status** - `String`, either ``online, here, active, available`` or ``idle, away``
|
||||
- **game** - `String`, Name of game being played, or `null` to clear
|
||||
- **game** - `String`, Name of game being played, or `Object` with the properties `name` `url` `type`, or `null` to clear
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
@@ -467,6 +467,17 @@ Sets the Discord Status of the Client
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
setStreaming(name, url, type `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sets the Discord Status of the Client
|
||||
|
||||
- **name** - `String`, Name of game being played
|
||||
- **url** - `String`, URL that it will link to
|
||||
- **type** - `Number`, `1` indicates streaming
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
setChannelTopic(channel, topic, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user