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 the 'Archive' operation for threads. It allows users to archive a thread by providing the thread ID, which is useful for managing and organizing discussions within Discord servers by marking threads as archived when they are no longer active.

Use Case Examples

  1. Archiving a thread after a project discussion is completed to keep the server organized.
  2. Automatically archiving threads that have been inactive for a certain period to reduce clutter.

Properties

Name Meaning
Thread ID The ID of the thread to be archived, required to identify which thread to archive.
Additional Fields Optional fields that can be used to provide extra parameters such as embed JSON, TTS flag, reason for the action, and other Discord-specific settings, though not typically used for archiving threads.

Output

JSON

  • success - Indicates if the archive operation was successful.
  • threadId - The ID of the thread that was archived.
  • archived - Boolean indicating the thread is archived (true).

Dependencies

  • Discord API
  • Bot token credential for authentication

Troubleshooting

  • Ensure the provided Thread ID is correct and the thread exists; otherwise, the node will throw a 'Thread not found' error.
  • The bot must have appropriate permissions to manage threads in the Discord server; lack of permissions will cause operation failure.
  • Invalid or expired bot token credentials will prevent the node from authenticating with Discord API.

Links

Discussion