Setting up a test server and bot account
- Create a Discord Server if you haven't got one already to use for testing.
- Go to the Discord Developers Portal.
- Click on the
New Applicationbutton, enter your desired bot name, and click
- In your new application, go to the
Add Bot, and confirm
Yes, do it!
- Change your bot's
Public Botsetting off so only you can invite it, save, and then get your Bot Token with the
Note: DO NOT post your bot token anywhere public, or it can and will be compromised.
- Save your Bot Token somewhere safe to use in the project settings later.
- In the
General Informationtab, grab the Client ID.
<CLIENT_ID_HERE>in the following URL and visit it in the browser to invite your bot to your new test server.
Optionally, you can generate your own invite url in the
OAuth tab, after selecting
bot as the scope.
First, enable developer mode in your client so you can easily copy IDs.
- Go to your
User Settingsand click on the
Right click the server icon and click
Right click a channel name and click
Right click a role and click
Copy ID. The easiest way to do this is by going to the role list in the guild's settings.
Insert the emoji into the Discord text box, then add a backslash
\ right before the emoji and send the message. The result should be similar to the following
The long number you see, in this case
511950877733552138, is the emoji's ID.
Once a webhook is created, the ID is found in the penultimate part of the URL. For example, in the following URL,
661995360146817053 is the ID of the webhook.