N8N Tools Discord icon

N8N Tools Discord

Discord Enhanced node with comprehensive API support

Guilds → Delete Guild

AI-generated

Overview

The "Delete Guild" operation in the "Guilds" resource of this Discord Enhanced node allows users to delete a specific guild (Discord server) by providing its unique Guild ID. This operation is useful for administrators or bots that need to programmatically remove a guild from their management scope or clean up test servers.

Practical scenarios include:

  • Automating the removal of obsolete or test guilds.
  • Managing multiple guilds and removing those no longer needed.
  • Integrating with workflows that require dynamic guild lifecycle management.

Properties

Name Meaning
Guild ID The unique identifier of the guild to be deleted.

Output

The output JSON will contain the response from the Discord API regarding the deletion of the specified guild. Typically, this may be an empty object or confirmation message indicating successful deletion. If the deletion fails, the output will contain error details.

No binary data is involved in this operation.

Dependencies

  • Requires an active connection to the Discord API via an authenticated API key credential.
  • Requires a valid subscription and API key for the external service ("N8N Tools API") used for validation before making requests.
  • The node uses HTTP requests to communicate with the Discord API through the helper class DiscordApi.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the API key credential is correctly configured and has the necessary permissions.
  • Permission Errors: Deleting a guild requires appropriate permissions. Ensure the API token used has administrative rights over the guild.
  • Guild Not Found: If the provided Guild ID does not exist or is incorrect, the operation will fail. Double-check the Guild ID input.
  • API Rate Limits: Frequent deletion attempts may hit Discord API rate limits; handle such errors by adding retries or delays.
  • Unknown Operation Error: If the operation name is misspelled or unsupported, the node will throw an error indicating an unknown operation.

Links and References

Discussion