๐ฎ Discord
Discord Bot Setup Guide
Create a Discord bot application and connect it to CodeCanvas for automated server management and auto-replies.
โฑ 8 minutes ยท Intermediate
1
Go to Discord Developer Portal
- Visit discord.com/developers/applications
- Log in with your Discord account
- Click New Application in the top right
- Enter a name for your bot (e.g. "My Support Bot") and click Create
2
Create the Bot User
- In the left sidebar, click Bot
- Click Add Bot โ Yes, do it!
- Under the bot's username, click Reset Token to generate a token
- Copy the token โ it looks like:
MTk4NjIyNDg3ODc2OTI0MTYx.abc123.defghijklmnop
โ ๏ธNever share your bot token! If leaked, reset it immediately in the Developer Portal.
3
Set Bot Permissions
- Still in the Bot section, scroll to Privileged Gateway Intents
- Enable Message Content Intent โ this lets your bot read messages
- Enable Server Members Intent โ for welcome messages to new members
- Click Save Changes
๐กWithout Message Content Intent enabled, your bot cannot read what users type in the server.
4
Invite Bot to Your Server
- In the left sidebar, click OAuth2 โ URL Generator
- Under Scopes, check: bot and applications.commands
- Under Bot Permissions, check: Send Messages, Read Message History, Read Messages/View Channels
- Copy the generated URL at the bottom and open it in your browser
- Select your server and click Authorize
5
Create Bot on CodeCanvas
6
Set Interactions Endpoint URL
- Go back to Discord Developer Portal โ your app โ General Information
- Find Interactions Endpoint URL
- Paste your CodeCanvas webhook URL there
- Click Save Changes
๐กDiscord will verify your endpoint by sending a PING request. CodeCanvas handles this automatically.
7
Test Your Bot
- Go to your Discord server โ your bot should appear in the member list
- Type a message in any channel where the bot has permissions
- The message should appear in your CodeCanvas Messages dashboard
- If you have flows set up, the bot will reply automatically!