Discord Bot Token is a short phrase that acts as a “key” to controlling a Discord Bot. Tokens are used inside bot code to send commands back and forth to the API, which in turn controls bot actions.
Head over to discord discord developer portal. After that look on top right and click new application
Now lets head over to the bot page on the left hand side.
Lets get started on inviting your newly made discord bot to your discord server. First off you will need your client token to start off with and this link. http://absentservices.xyz/authorize/
Head over to "General Information" tab and get the client id.
Then head over to your internet browser and paste the link
To set up the discord bot permissions you could either setup a role in your server or setup permissions from the bot application. Lets head over to the bot page. and scroll down.
Depends on what bot you are making. You will need your discord bot to have permissions to edit your chat, kick, ban, mute, manage server, or just set it as administrator. Note if your doing it this way you will need to re-invite your discord bot to the discord server using the link. After the permissions are setup use the link http://absentservices.xyz/authorize/ , Change the permissions=0 to the Permission integer number you have setup.
Do not share your discord bot token with anyone. Otherwise someone can control your discord bot.