fix(ESLint)

This commit is contained in:
March 7th
2022-08-01 13:02:58 +07:00
parent 171f2b1af9
commit 8119666bcb
4 changed files with 1065 additions and 1409 deletions

View File

@@ -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.');
}