Discord Bot
Integrate your application with the Discord API using a bot token
🚀 Quickstart
Connect to Discord with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> 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.
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:
curl "https://api.tenklo.dev/proxy/api/v10/applications/@me" \
-H "Authorization: Bearer <NANGO-API-KEY>" \
-H "Provider-Config-Key: <INTEGRATION-ID>" \
-H "Connection-Id: <CONNECTION-ID>"Or fetch credentials with the Node SDK or API.
✅ You're connected! Check the Logs tab in Tenklo to inspect requests.
Follow our Auth implementation guide to integrate Tenklo 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.
Official docs: Discord Developer Portal
API gotchas
- Discord bot tokens authenticate with the
Botprefix (Authorization: Bot <token>), which Tenklo 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
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
Pre-built tooling
✅ Authorization
| Tools | Status |
|---|---|
| Pre-built authorization (API Key) | ✅ |
| Pre-built authorization UI | ✅ |
| Custom authorization UI | ✅ |
| End-user authorization guide | ✅ |
| Expired credentials detection | ✅ |
✅ Read & write data
| Tools | Status |
|---|---|
| Pre-built integrations | 🚫 (time to contribute: <48h) |
| API unification | ✅ |
| 2-way sync | ✅ |
| Webhooks from Tenklo on data modifications | ✅ |
| Real-time webhooks from 3rd-party API | 🚫 (time to contribute: <48h) |
| Proxy requests | ✅ |
✅ Observability & data quality
| Tools | Status |
|---|---|
| HTTP request logging | ✅ |
| End-to-end type safety | ✅ |
| Data runtime validation | ✅ |
| OpenTelemetry export | ✅ |
| Slack alerts on errors | ✅ |
| Integration status API | ✅ |
✅ Customization
| Tools | Status |
|---|---|
| Create or customize use-cases | ✅ |
| Pre-configured pagination | 🚫 (time to contribute: <48h) |
| Pre-configured rate-limit handling | 🚫 (time to contribute: <48h) |
| Per-customer configurations | ✅ |
No pre-built syncs or actions available yet.