Skip to main content
The Discord tools allows you to integrate with a Discord bot, enabling you to send messages, retrieve messages from channels, add reactions, and fetch user information. This is useful for automating interactions with Discord servers.

Send a Discord message

  • DISCORD_SEND_MESSAGE
    • Send messages to Discord channels

Read messages from a channel

  • DISCORD_GET_CHANNEL_MESSAGES
    • Retrieve messages from a specific channel
    • Supports filtering

Add a reaction

  • DISCORD_ADD_REACTION
    • Add reactions to messages

Get Discord user info

  • DISCORD_GET_USER_INFO
    • Fetch a user’s profile by user_id: id, username, discriminator, and, when present, avatar, bot, and system

Connect a Discord bot

For further details, click here. To use the Discord tool, you need a Discord bot token. You can create a bot and obtain the token from the Discord Developer Portal. Follow the instructions in the developer documentation to set up your bot and get the token. Note: Treat API keys as sensitive information and never commit them to public repositories.

Example: Fetching and Sending Messages, Adding Reactions, and Getting User Info