Introduction
To create a discode bot, you must register the application with Discord first. This part will describe how to register application and add the bot to your server.
Steps
Step 1. Go to https://discord.com/developers/applications link.
Step 2. Click "New Application".
Step 3. After setting the application name, click the "Create" button to create it.
Step 4. Click "Bot" on the left and click "Add bot" to create a bot.
Step 5. Let's name the bot. Click "Reset Token" at the middle to create a Token. 💡 *Token information is very important.
Step 7. Generate URL to invite you bot to your own discord server.
Step 7-1. Click "OAuth2" on the left menu and select "bot" in the "SCOPES". And, You will see "BOT PERMISSIONS".
Step 7-2. After then, select "Send Messages", "Embed Links", "Attach Files" and "Read Message History" as shown as below images.
Step 8. Invite the bot to the server by copying "the generated URL" at the bottom and pasting it into your browser.
Step 9. Back on Discord, you can see that the bot has been invited.