From 8734b87ea9a4949b3b9a71beece6694d55c37c80 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 31 Mar 2022 20:21:53 +0700 Subject: [PATCH] nitro ? --- DOCUMENT.md | 2 +- package.json | 1 + src/structures/ClientUser.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DOCUMENT.md b/DOCUMENT.md index a344e75..15e7b95 100644 --- a/DOCUMENT.md +++ b/DOCUMENT.md @@ -303,7 +303,7 @@ await client.user.setAccentColor('RED'); // set color same as Embed.setColor() // Set Banner await client.user.setBanner('image file / image url'); // same as setAvatar & Require Nitro level 2 // Set Discord Tag -await client.user.setDiscriminator('1234', 'password'); // #1234 +await client.user.setDiscriminator('1234', 'password'); // #1234 & Require Nitro // Set About me await client.user.setAboutMe('Hello World'); // Set Email diff --git a/package.json b/package.json index 05f6b05..cb09887 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "bignumber.js": "^9.0.2", "chalk": "^4.1.2", "discord-api-types": "^0.27.3", + "discord-bettermarkdown": "^1.1.0", "discord-rpc-contructor": "^1.0.5", "discord.js": "^13.6.0", "form-data": "^4.0.0", diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 5f5374c..510e314 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -174,6 +174,7 @@ class ClientUser extends User { * @returns {Promise} */ setDiscriminator(discriminator, password) { + if (!this.nitro) 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.'); return this.edit({