Skip to content
Toolwire

Discord

Servers, channels and messages with a bot

CommunicationCatalog3 tools · 0 triggers

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

    1. At discord.com/developers/applications click “New Application”.
    2. Under “Bot” click “Reset Token” and copy the token; turn on “Message Content Intent” if the bot has to read the text of messages.
    3. 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.

    Get credentials (opens in a new tab)

Tools (3)

  • Discord API requestDISCORD_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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 channelsDISCORD_LIST_CHANNELS

    List 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 messageDISCORD_SEND_MESSAGE

    Send 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
    NameTypeDescription
    channelrequiredstringChannel ID (list them with DISCORD_LIST_CHANNELS)
    textrequiredstringContent (Discord Markdown, max. 2000 characters)
    reply_tostringID of the message to reply to