Discord icon

Discord

Interact with Discord API - Full Bot Features

Overview

This node interacts with the Discord API to perform various operations on Discord threads, specifically supporting the deletion of threads. It is useful for automating the management of Discord threads within a server, such as deleting threads programmatically based on certain triggers or workflows. For example, it can be used to clean up old or inactive threads automatically.

Use Case Examples

  1. Automatically delete a thread by its ID when a certain condition is met in a workflow.
  2. Manage thread lifecycle by deleting threads that are no longer needed to keep the Discord server organized.

Properties

Name Meaning
Thread ID The unique identifier of the Discord thread to be deleted.
Additional Fields Optional parameters that can be provided for the operation, including embed JSON, text-to-speech flag, reason for audit logs, and other Discord-specific settings, though not all are relevant for the delete operation.

Output

JSON

  • success - Indicates if the thread deletion was successful (true/false).
  • threadId - The ID of the thread that was deleted.
  • deleted - Boolean flag indicating the thread was deleted (true).

Dependencies

  • Discord API access via a bot token credential

Troubleshooting

  • Ensure the provided Thread ID is valid and the bot has permission to manage and delete threads in the Discord server.
  • Common error: 'Thread not found' occurs if the Thread ID does not exist or the bot lacks access. Verify the thread ID and bot permissions.
  • If the bot token is invalid or expired, authentication will fail. Ensure the bot token credential is correct and active.

Links

Discussion