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:
SpaceEEC
2017-08-17 18:27:32 +02:00
committed by Crawl
parent 6065fe1f8c
commit e677543c30
2 changed files with 14 additions and 14 deletions

View File

@@ -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