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 webhooks, specifically including the ability to delete a webhook. It is useful for automating Discord server management tasks such as creating, sending messages via, and deleting webhooks. For example, a user can automate the removal of outdated or unused webhooks from their Discord server to maintain organization and security.

Use Case Examples

  1. Deleting a webhook by specifying its guild and channel IDs to remove an unwanted webhook from a Discord server.
  2. Automating webhook management by integrating webhook creation, message sending, and deletion in a workflow.

Properties

Name Meaning
Additional Fields Optional parameters to customize the webhook deletion or other webhook-related actions, such as embed JSON, TTS, reason for action, and other Discord-specific settings.

Output

JSON

  • success - Indicates if the webhook deletion was successful.
  • webhookId - The ID of the webhook that was deleted.

Dependencies

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

Troubleshooting

  • Common issues include invalid guild or channel IDs, or attempting to delete a webhook from a channel that does not support webhooks, which will result in errors indicating 'Invalid channel for webhook'.
  • Errors related to authentication failures if the provided Discord bot token is invalid or lacks necessary permissions.
  • Ensure the webhook exists before attempting deletion to avoid 'Webhook not found' errors.

Links

Discussion