feat: default values for setX boolean methods (#6619)

This commit is contained in:
Rodry
2021-09-14 23:25:50 +01:00
committed by GitHub
parent 0a71a4d18f
commit 8add4b08f5
5 changed files with 24 additions and 24 deletions

View File

@@ -168,11 +168,11 @@ class ClientUser extends User {
/**
* Sets/removes the AFK flag for the client user.
* @param {boolean} afk Whether or not the user is AFK
* @param {boolean} [afk=true] Whether or not the user is AFK
* @param {number|number[]} [shardId] Shard Id(s) to have the AFK flag set on
* @returns {ClientPresence}
*/
setAFK(afk, shardId) {
setAFK(afk = true, shardId) {
return this.setPresence({ afk, shardId });
}
}