Discord
Servers, channels and messages with a bot
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Bot tokenSecretRequired
Where to find them
- At discord.com/developers/applications click “New Application”.
- Under “Bot” click “Reset Token” and copy the token; turn on “Message Content Intent” if the bot has to read the text of messages.
- Under “OAuth2” → “OAuth2 URL Generator” check the “bot” scope and the permissions (View Channels, Send Messages, Read Message History…), open the generated URL and add the bot to your server.
Tools (3)
Discord API request
DISCORD_SEND_REQUESTAuthenticated call to the Discord API (https://discord.com/api/v10). Any endpoint of the API is allowed. Examples: GET /users/@me/guilds, GET /guilds/{id}/channels, GET /channels/{id}/messages?limit=50, POST /channels/{id}/messages {"content": "…"} (max. 2000 characters), PATCH /channels/{id}/messages/{messageId}, DELETE /channels/{id}/messages/{messageId}, GET /guilds/{id}/roles.
Required scopes
No scopes required
Input
Discord API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Servers and channels
DISCORD_LIST_CHANNELSList the servers the bot is in, with their text and announcement channels (ids included).
Required scopes
No scopes required
Input
No input parameters.
Send a message
DISCORD_SEND_MESSAGESend a message as the bot to a text channel, or reply to a message. It does not notify @everyone or roles.
Required scopes
No scopes required
Input
Send a message input Name Type Description channelrequiredstringChannel ID (list them with DISCORD_LIST_CHANNELS) textrequiredstringContent (Discord Markdown, max. 2000 characters) reply_tostringID of the message to reply to

