Discord icon

Discord

Interact with Discord API - Full Bot Features

Overview

This node interacts with the Discord API to perform various operations related to Discord channels, specifically for the 'Delete' operation on the 'Channel' resource. It allows users to delete a specified channel within a Discord guild (server). This is useful for managing server channels programmatically, such as removing outdated or unnecessary channels automatically as part of a workflow.

Use Case Examples

  1. Automatically delete a channel when a project is completed.
  2. Remove a channel based on certain triggers or conditions in a workflow.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the channel exists.
Channel ID The ID of the channel to be deleted.
Additional Fields Optional fields that can be provided for extended functionality, though not specifically used in the delete operation for channels.

Output

JSON

  • success - Indicates if the channel deletion was successful.
  • channelId - The ID of the deleted channel.

Dependencies

  • Discord API access via a bot token credential

Troubleshooting

  • Ensure the provided Guild ID and Channel ID are correct and that the bot has the necessary permissions to delete channels in the specified guild.
  • If the channel is not found, the node will throw an error 'Channel not found'. Verify the channel ID and guild ID are accurate.
  • The bot must be logged in with a valid bot token and have the 'Manage Channels' permission in the guild to perform deletions.

Discussion