Registering a Discord API Application
March 27, 2023 ยท View on GitHub
To use Dis4IRC, you will need a bot token from Discord API.
To get a bot token, you will need to register a new application.
Let's get started.
Creating an Application
Start by going to the Discord Developer Portal and logging in with your Discord account.
Next, on the main portal page, select the large "Create an application" placeholder.

Give your application a name that makes sense to you, I'll be using "Bridge".
If prompted, save your changes.
Creating a Bot
Then click the "Bot" tab in the sidebar on the left.

Select "Add bot" on the right side.

Give your bot a username, if you aren't using webhooks, you'll see this name a lot.
You can also give it an icon, if you aren't using webhooks you'll see this a lot too.
Now click the "Copy" button under the "Token" section. That is your bot's Discord API token that you should paste into the config file.

Gateway Intents
You're almost done, just one more thing. Scroll down, under "Privileged Gateway Intents" and make sure that the both the "Server Members Intent" and the "Message Content Intent" is set to On.
Dis4IRC requires the "Server Members Intent" to properly cache the member list for things like pings from IRC. Dis4IRC requires the "Message Content Intent" to access message content now that Discord has added the command system.

If you do not enable these intents, you will receive an error message like this on start up:
CloseCode(4014 / Disallowed intents. Your bot might not be eligible to request a privileged intent such as GUILD_PRESENCES or GUILD_MEMBERS.)
Back to the Getting Started page