fix(ESLint)
This commit is contained in:
@@ -222,8 +222,7 @@ class ClientUser extends User {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
setDiscriminator(discriminator, password) {
|
||||
if (this.nitroType == 'NONE')
|
||||
throw new Error('You must be a Nitro User to change your discriminator.');
|
||||
if (this.nitroType == 'NONE') throw new Error('You must be a Nitro User to change your discriminator.');
|
||||
if (!password && !this.client.password) {
|
||||
throw new Error('A password is required to change a discriminator.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user