🚀 Quickstart
Connect to Discord with Nango and see data flow in 2 minutes.1
Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Discord Bot.
2
Authorize Discord Bot
Go to Connections -> Add Test Connection -> Authorize, then enter your bot token from the Discord Developer Portal. Later, you’ll let your users do the same directly from your app.
3
Call the Discord API
Make your first request to the Discord API (e.g. get your application info). Replace the placeholders below with your Environment API key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.✅ You’re connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
4
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain a bot token, follow the connect guide linked below.
Common Scopes
Discord bots are not authorized with OAuth scopes. Instead, a bot’s capabilities are controlled by:- The permissions granted when the bot is invited to a server (guild), encoded in the invite URL.
- The privileged gateway intents enabled in the Discord Developer Portal (e.g. Server Members, Message Content).
📚 Discord Bot Integration Guides
Nango-maintained guides for common use cases.- How do I link my Discord bot? Learn how to create a Discord application, obtain your bot token, and link your account.
API gotchas
- Discord bot tokens authenticate with the
Botprefix (Authorization: Bot <token>), which Nango handles automatically. This is different from the OAuth-based Discord integration, which yields user access tokens authenticated withBearer. - Resetting a bot token in the Discord Developer Portal invalidates the previous token immediately.
- Some API endpoints require privileged gateway intents to be enabled for your application in the Discord Developer Portal.
Pre-built syncs & actions for Discord Bot
Enable them in your dashboard. Extend and customize to fit your needs.Pre-built tooling
✅ Read & write data
✅ Read & write data
✅ Observability & data quality
✅ Observability & data quality
✅ Customization
✅ Customization