Discord application setup
Create an application in the Discord Developer Portal, add a bot, and copy the bot token into DISCORD_TOKEN. Enable only the privileged intents required by your commands and plugins. Invite the bot with the bot and applications.commands scopes and the minimum permissions it needs.
If the bot uses prefix text commands, open Bot → Privileged Gateway Intents and enable Message Content Intent. Popii requests this gateway intent, but Discord must also enable it for the application. Slash-only bots can leave it disabled.
Copy the application ID when command synchronization or OAuth configuration requests it. Rotate any credential that was exposed in source control or logs. popii doctor checks credential presence without printing secret values.