1
Create the application
Go to discord.com/developers/applications
and create a new application. Name it whatever your community should
see, e.g. “mob”.
2
Bot tab
Copy the bot token into
MOB_DISCORD_BOT_TOKEN in your .env. Then
enable the Server Members and Message Content privileged
intents; mob needs them to mirror member permissions and to index
messages.3
OAuth2 tab
Copy the client id and secret into
MOB_DISCORD_CLIENT_ID and
MOB_DISCORD_CLIENT_SECRET. Add a redirect URL: your MOB_BASE_URL
followed by /auth/discord/callback.4
Gateway delivery
Leave the Interactions Endpoint URL empty. Slash commands arrive through
the app’s gateway connection.
- A public channel visible to the bot enters the index.
- A private channel enters after its permission overwrites grant the bot access, by adding the bot or its role to the channel.
- A private channel the bot cannot see is closed to every agent through mob.