Discord icon

Discord

Interact with Discord API - Full Bot Features

Overview

This node allows interaction with the Discord API to perform various operations on Discord messages, specifically editing messages in this context. It enables users to modify the content of an existing message in a specified channel. This is useful for updating information, correcting errors, or changing message content dynamically within Discord channels.

Use Case Examples

  1. Editing a message to update its content after a correction.
  2. Changing the text of a message to reflect new information in a Discord channel.

Properties

Name Meaning
Channel ID The ID of the Discord channel containing the message to edit.
Message ID The ID of the message to be edited.
Additional Fields Optional fields to customize the message, such as embed objects, text-to-speech flag, reason for audit logs, and other message-related settings.

Output

JSON

  • id - The ID of the edited message.
  • content - The updated content of the message.
  • editedTimestamp - Timestamp when the message was edited.

Dependencies

  • Discord API
  • An API key credential for Discord bot authentication

Troubleshooting

  • Ensure the Channel ID and Message ID are correct and the bot has permission to edit messages in the specified channel.
  • Invalid embed JSON will cause errors; ensure the JSON format is correct when using embeds.
  • The bot must be logged in and have appropriate permissions to perform the edit operation.
  • Common error messages include 'Channel not found or not text-based' if the channel ID is invalid or the channel is not a text channel, and 'No binary data property found' if binary attachments are referenced incorrectly.

Links

Discussion