nitro ?
This commit is contained in:
parent
9edf3ccda2
commit
8734b87ea9
@ -303,7 +303,7 @@ await client.user.setAccentColor('RED'); // set color same as Embed.setColor()
|
|||||||
// Set Banner
|
// Set Banner
|
||||||
await client.user.setBanner('image file / image url'); // same as setAvatar & Require Nitro level 2
|
await client.user.setBanner('image file / image url'); // same as setAvatar & Require Nitro level 2
|
||||||
// Set Discord Tag
|
// Set Discord Tag
|
||||||
await client.user.setDiscriminator('1234', 'password'); // #1234
|
await client.user.setDiscriminator('1234', 'password'); // #1234 & Require Nitro
|
||||||
// Set About me
|
// Set About me
|
||||||
await client.user.setAboutMe('Hello World');
|
await client.user.setAboutMe('Hello World');
|
||||||
// Set Email
|
// Set Email
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
"bignumber.js": "^9.0.2",
|
"bignumber.js": "^9.0.2",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"discord-api-types": "^0.27.3",
|
"discord-api-types": "^0.27.3",
|
||||||
|
"discord-bettermarkdown": "^1.1.0",
|
||||||
"discord-rpc-contructor": "^1.0.5",
|
"discord-rpc-contructor": "^1.0.5",
|
||||||
"discord.js": "^13.6.0",
|
"discord.js": "^13.6.0",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
|
@ -174,6 +174,7 @@ class ClientUser extends User {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
setDiscriminator(discriminator, password) {
|
setDiscriminator(discriminator, password) {
|
||||||
|
if (!this.nitro) throw new Error('You must be a Nitro User to change your discriminator.');
|
||||||
if (!password && !this.client.password)
|
if (!password && !this.client.password)
|
||||||
throw new Error('A password is required to change a discriminator.');
|
throw new Error('A password is required to change a discriminator.');
|
||||||
return this.edit({
|
return this.edit({
|
||||||
|
Loading…
Reference in New Issue
Block a user