Go to the Discord Developer portal. You will need to login with your Discord account, that you want your bot to be associated with, to create a Discord application.
After you've logged in, click on the Create an application button.
Here you can set some cool the name for your application, like Dark Lord or Bastion! You can also set a neat avatar for your bot that will be displayed to everyone in Discord.
Here, you will also find the Client ID of your bot. You will need this a few times during the installation process. So remember to come back here when required, so save it somewhere you can always refer to.
After you are done with customizing your Discord application, you will need to create a bot that will be associated with that application. To do that, go to the Bot section (in the left sidebar) and then click on the Add Bot button to give your application a visible life in Discord.
After your bot comes to life, you will find a few more options in there. Make sure to disable the Public Bot and Requires OAuth2 Code Grant options.
You will need your bot's Client ID (remember?) during this step.
Copy the following link, and replace the
INSERT_CLIENT_ID_HERE part with your bot's Client ID and visit the link.
You will be asked by Discord to select the server where you want to invite your bot. Select your server and invite your bot!
Now go and check out your server and you will find that your bot has joined your server.