Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow presence updating to allow null games (discordjs#1186)
* Adding resetGame functionallity `setGame` method would allways result in an Object passed to `setPresence`. Passing { game: null } (supported by discords WebSocket gateway to reset the current Game) to `setPresence` would still result in a Game Object sent to the endpoint. Explicitly setting `game` to null should overwrite the `game` object provided by `localPresence` or `client.presence`. This was neither supported by `setGame` or `setPresence`. * Missing semicolons to resetGame and setPresence * Fixing trailing spaces, commas and semicolons * Moving resetGame functionality into setGame method Minification of if statement in setPresence. Removing resetGame method and adding a case for `game === null` to setGame method * Adding missing space in setGame method * Fix docs
- Loading branch information