mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Allow to set the new game types via ClientUser#setPresence and ClientUser#setGame (#1782)
* Allow to set the new game types via ClientUser#setPresence and setGame * Accept string version of types, fix options parameter, remove Presence#streaming * One line if statement, don't reuse data.game when game is already reassigned and fix error message * Removed redundant if statement
This commit is contained in:
@@ -66,15 +66,6 @@ class Game {
|
||||
this.url = data.url || null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the game is being streamed
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get streaming() {
|
||||
return this.type === Constants.GameTypes[1];
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this game is equal to another game
|
||||
* @param {Game} game The game to compare with
|
||||
|
||||
Reference in New Issue
Block a user