mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
No, Hydra! Bad!
This commit is contained in:
parent
f0741f2288
commit
155b4383d2
2 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -90,7 +90,7 @@ class ClientUser extends User {
|
|||
/**
|
||||
* Set the status of the logged in user.
|
||||
* @param {string} status can be `online`, `idle`, `invisible` or `dnd` (do not disturb)
|
||||
* @returns {Promise<ClientUser, Error>}
|
||||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setStatus(status) {
|
||||
return this.setPresence({ status });
|
||||
|
|
@ -100,7 +100,7 @@ class ClientUser extends User {
|
|||
* Set the current game of the logged in user.
|
||||
* @param {string} game the game being played
|
||||
* @param {string} [streamingURL] an optional URL to a twitch stream, if one is available.
|
||||
* @returns {Promise<ClientUser, Error>}
|
||||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setGame(game, streamingURL) {
|
||||
return this.setPresence({ game: {
|
||||
|
|
@ -112,7 +112,7 @@ class ClientUser extends User {
|
|||
/**
|
||||
* Set/remove the AFK flag for the current user.
|
||||
* @param {boolean} afk whether or not the user is AFK.
|
||||
* @returns {Promise<ClientUser, Error>}
|
||||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setAFK(afk) {
|
||||
return this.setPresence({ afk });
|
||||
|
|
@ -121,7 +121,7 @@ class ClientUser extends User {
|
|||
/**
|
||||
* Set the full presence of the current user.
|
||||
* @param {Object} data the data to provide
|
||||
* @returns {Promise<ClientUser, Error>}
|
||||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setPresence(data) {
|
||||
// {"op":3,"d":{"status":"dnd","since":0,"game":null,"afk":false}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue