How to operate Discord API with Python (bot registration)
I had to post to a DM or channel to a user using a bot on Discord, so I'll show you how.
This time I will write without using disocrd.py.
Make sure you have Discord administrator privileges.
If not, get administrator privileges
or
You need to tell the administrator the URL that will be displayed at the end and have it added.
bot registration
Go to Discord developer page
https://discord.com/developers/applications
Click New Application
Enter an arbitrary name on the CREATE AN APPLICATION screen and press CREATE.
Since it will move to the General Information screen, select bot from the menu on the left
Select "Add Bot".
Select Yes, do it! Without thinking about anything
- At this time, if the bot name is covered with another person, an error may occur. I got an error when I tried test, so I chose test3298.
Go to the OAuth2 menu and select Scope as a bot
Check Send Message because the bot permissions checkbox sends a message
Copy because the URL is generated in the SCOPE part
If you paste the copied URL into a browser etc. and access it, the authentication screen will appear
Select a server and select "Yes" to add the bot to the server
Continue to API operation