1. Open https://discordapp.com/developers/applications/me and click on “Create an application”.
2. Switch to
If you want to, you can rename your application first
3. Click on
Add bot and confirm the popup
4. Copy the bot’s token. In this case the token would be
NDc[...]pCs. You can just click on
This token is used to login your bot. Keep it secret!
5. If you want to, you can change the bot’s name and avatar on this page, too.
You can use Javacord to create the invite for you by simply doing:
DiscordApi api = new DiscordApiBuilder().setToken("your token").login().join(); System.out.println(api.createBotInvite());
As an alternative, you can also create the invite link manually.
In order to add a bot to your server you need its client id.
You can get your client id from the same page where you created it.
With this id you can create an invite link for your bot.
If you are the owner or admin of the server, you can use this link to add your bot to your server. Otherwise, you have to give the link to the server owner/admins and ask them to add your bot.
Unlike the token, you don’t have to keep your client id secret
Just use the following link and replace
123456789 with your own client id.
You can calculate the permissions (in the link above it’s the
0) on the page where you created the bot:
You can now open the link and add the bot to your server: