mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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:
@@ -1094,6 +1094,10 @@ export default class Client extends EventEmitter {
|
||||
return this.setStatus(null, game, callback);
|
||||
}
|
||||
|
||||
setStreaming(name, url, type, callback = (/*err, {}*/) => { }) {
|
||||
return this.setStatus(null, {name: name, url: url, type: type}, callback);
|
||||
}
|
||||
|
||||
//def forceFetchUsers
|
||||
forceFetchUsers(callback){
|
||||
return this.internal.forceFetchUsers().then(callback);
|
||||
|
||||
Reference in New Issue
Block a user