Discord.js: .setDiscriminator() function

Created on 5 Jun 2019  路  1Comment  路  Source: discordjs/discord.js

Add a .setDiscriminator() function.

In my point of view, all the bot programmers who use discord.js as their common library would love to see a function such as .setDiscriminator() which sets the discriminator of the bot user.

An example of how it would look like (being utilized on a bot code) is:

.setDiscriminator('1000').then(newDiscriminator () => {
      console.log('Set the new bot discriminator to ' + newDiscriminator);
}
question (please use Discord instead)

Most helpful comment

This is not possible, as the API does not allow free setting of discriminators for bots.
While for users this might be possible using a user token for your bot is against discords terms of service and the library does not plan on adding any client user functionality based on this (even removed all prior functionality regarding user tokens with the new version 12)

reference: https://support.discordapp.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-

>All comments

This is not possible, as the API does not allow free setting of discriminators for bots.
While for users this might be possible using a user token for your bot is against discords terms of service and the library does not plan on adding any client user functionality based on this (even removed all prior functionality regarding user tokens with the new version 12)

reference: https://support.discordapp.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiritto picture tiritto  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments

DatMayo picture DatMayo  路  3Comments

Alipoodle picture Alipoodle  路  3Comments