Discord Advanced icon

Discord Advanced

Advanced Discord tools - Analytics, Moderation, Backup, and Automation

Overview

This node provides advanced Discord server management tools, including analytics, moderation, backup, automation, and insights. Specifically, the 'Export Channel Messages' operation under the 'Backup' resource exports all messages from a specified Discord channel in various formats (JSON, CSV, HTML). It supports options like including bot messages, attachments, and limiting the number of messages processed. This is useful for backing up channel conversations, auditing message history, or migrating data.

Use Case Examples

  1. Export all messages from a specific channel in JSON format for archival.
  2. Export channel messages including attachments and bot messages in CSV format for detailed analysis.
  3. Export messages in HTML format for easy viewing and sharing.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) from which to export messages.
Channel ID The ID of the specific channel within the guild to export messages from.
Export Format The format in which to export the messages: JSON, CSV, or HTML.
Additional Options Optional settings to customize the export, including whether to include bot messages, minimum messages for analysis, whether to include attachments, spam threshold, inactive days, and maximum items to process.

Output

JSON

  • channelId - ID of the channel from which messages were exported.
  • channelName - Name of the channel.
  • exportFormat - Format used for exporting messages.
  • messageCount - Number of messages exported.
  • exportedAt - Timestamp when the export was performed.
  • messages
    • * `id` \- ID of each message. * `author` \- Username of the message author. * `authorId` \- ID of the message author. * `content` \- Content of the message. * `timestamp` \- ISO timestamp of when the message was created. * `attachments` *
      * name - Name of each attachment.
      * url - URL of each attachment.
      * type - Content type of each attachment.
      * embeds - Number of embeds in the message.
      * reactions - Number of reactions on the message.

Dependencies

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

Troubleshooting

  • Channel not found or not text-based error: Ensure the provided channel ID is correct and the channel supports text messages.
  • Authentication errors: Verify the Discord bot token credential is valid and has necessary permissions.
  • Message fetch limits: The node fetches up to 100 messages per request; large channels may require multiple executions or adjustments.
  • Include Bots option: If bot messages are not appearing, check the 'Include Bots' option is enabled.

Links

Discussion