No, Hydra! Bad!

This commit is contained in:
Schuyler Cebulskie
2016-09-27 22:13:04 -04:00
parent f0741f2288
commit 155b4383d2
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -90,7 +90,7 @@ class ClientUser extends User {
/** /**
* Set the status of the logged in user. * Set the status of the logged in user.
* @param {string} status can be `online`, `idle`, `invisible` or `dnd` (do not disturb) * @param {string} status can be `online`, `idle`, `invisible` or `dnd` (do not disturb)
* @returns {Promise<ClientUser, Error>} * @returns {Promise<ClientUser>}
*/ */
setStatus(status) { setStatus(status) {
return this.setPresence({ status }); return this.setPresence({ status });
@@ -100,7 +100,7 @@ class ClientUser extends User {
* Set the current game of the logged in user. * Set the current game of the logged in user.
* @param {string} game the game being played * @param {string} game the game being played
* @param {string} [streamingURL] an optional URL to a twitch stream, if one is available. * @param {string} [streamingURL] an optional URL to a twitch stream, if one is available.
* @returns {Promise<ClientUser, Error>} * @returns {Promise<ClientUser>}
*/ */
setGame(game, streamingURL) { setGame(game, streamingURL) {
return this.setPresence({ game: { return this.setPresence({ game: {
@@ -112,7 +112,7 @@ class ClientUser extends User {
/** /**
* Set/remove the AFK flag for the current user. * Set/remove the AFK flag for the current user.
* @param {boolean} afk whether or not the user is AFK. * @param {boolean} afk whether or not the user is AFK.
* @returns {Promise<ClientUser, Error>} * @returns {Promise<ClientUser>}
*/ */
setAFK(afk) { setAFK(afk) {
return this.setPresence({ afk }); return this.setPresence({ afk });
@@ -121,7 +121,7 @@ class ClientUser extends User {
/** /**
* Set the full presence of the current user. * Set the full presence of the current user.
* @param {Object} data the data to provide * @param {Object} data the data to provide
* @returns {Promise<ClientUser, Error>} * @returns {Promise<ClientUser>}
*/ */
setPresence(data) { setPresence(data) {
// {"op":3,"d":{"status":"dnd","since":0,"game":null,"afk":false}} // {"op":3,"d":{"status":"dnd","since":0,"game":null,"afk":false}}