Discord
Integrate your application with the Discord API
🚀 Quickstart
Connect to Discord with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> Discord.
Go to Connections -> Add Test Connection -> Authorize, then log in to Discord. Later, you'll let your users do the same directly from your app.
Let's make your first request to the Discord API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:
curl "https://api.tenklo.dev/proxy/users/@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 your own production credentials, follow the setup guide linked below.
📚 Discord Integration Guides
Tenklo maintained guides for common use cases.
- How to register your own Discord OAuth app
Register an OAuth app with Discord and obtain credentials to connect it to Tenklo
Official docs: Discord API docs
🧩 Pre-built syncs & actions for Discord
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
add-guild-member-role | Assign a role to a guild member. | Action | 🔗 Github |
create-channel | Create a channel in Discord | Action | 🔗 Github |
create-message | Create a message in Discord. | Action | 🔗 Github |
create-reaction | Add a reaction to a Discord message. | Action | 🔗 Github |
create-role | Create a role in Discord | Action | 🔗 Github |
create-thread-from-message | Start a Discord thread from an existing message | Action | 🔗 Github |
create-webhook | Create a webhook in a Discord channel | Action | 🔗 Github |
delete-channel | Delete or archive a channel in Discord | Action | 🔗 Github |
delete-guild | Leave a guild in Discord. Note: Discord does not allow bots to delete guilds via the API; use this action to have the bot leave a guild instead. | Action | 🔗 Github |
delete-guild-member | Delete or archive a guild member in Discord | Action | 🔗 Github |
delete-message | Delete or archive a message in Discord | Action | 🔗 Github |
delete-reaction | Remove a reaction from a Discord message. | Action | 🔗 Github |
delete-role | Delete a role in a Discord guild | Action | 🔗 Github |
delete-webhook | Delete a webhook in Discord permanently | Action | 🔗 Github |
get-channel | Retrieve a single channel from Discord | Action | 🔗 Github |
get-guild-member | Retrieve a single guild member from Discord | Action | 🔗 Github |
get-guild | Retrieve a single guild from Discord. | Action | 🔗 Github |
get-message | Retrieve a single message from Discord. | Action | 🔗 Github |
get-role | Retrieve a single role from Discord | Action | 🔗 Github |
get-webhook | Retrieve a single webhook from Discord. | Action | 🔗 Github |
list-channels | List channels from a Discord guild (server) | Action | 🔗 Github |
list-guild-members | List guild members from Discord. | Action | 🔗 Github |
list-guilds | List guilds from Discord. | Action | 🔗 Github |
list-messages | List messages from a Discord channel with optional pagination filters | Action | 🔗 Github |
list-roles | List roles from Discord. | Action | 🔗 Github |
list-webhooks | List webhooks from a Discord channel | Action | 🔗 Github |
remove-guild-member-role | Remove a role from a guild member | Action | 🔗 Github |
update-channel | Update a Discord channel. | Action | 🔗 Github |
update-guild-member | Update a guild member in Discord | Action | 🔗 Github |
update-guild | Update a guild in Discord | Action | 🔗 Github |
update-message | Update a message in Discord. | Action | 🔗 Github |
update-role | Update a role in Discord | Action | 🔗 Github |
update-webhook | Update a webhook in Discord. | Action | 🔗 Github |
channels | Sync channels from Discord | Sync | 🔗 Github |
guild-members | Sync guild members from Discord | Sync | 🔗 Github |
guilds | Sync guilds from Discord. | Sync | 🔗 Github |
messages | Sync messages from Discord. | Sync | 🔗 Github |
roles | Sync roles from Discord | Sync | 🔗 Github |
webhooks | Sync webhooks from Discord. | Sync | 🔗 Github |