Actions30
- Message Actions
- User Actions
- Channel Actions
- Guild Actions
- Emoji Actions
- Analytics Actions
- Moderation Actions
- Backup Actions
- DM Actions
Overview
This node operation fetches all webhooks in a specified Discord channel within a guild (server). It connects to the Discord API using a bot token, retrieves the channel by its ID, verifies the channel belongs to the specified guild, and then fetches all webhooks associated with that channel. This is useful for managing or auditing webhooks in Discord channels, such as listing webhook URLs, owners, and other metadata.
Use Case Examples
- Listing all webhooks in a marketing channel to audit integrations.
- Fetching webhooks in a support channel to manage automated responses.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) where the channel is located. |
| Channel ID | The ID of the channel from which to fetch webhooks. |
| Additional Options | Optional parameters for other operations but not used in 'Get Webhooks' operation. |
Output
JSON
id- Webhook IDname- Webhook nameavatar- Webhook avatar hash or null if nonechannelId- ID of the channel the webhook belongs toguildId- ID of the guild (server) the webhook belongs toownerid- ID of the webhook owner userusername- Username of the webhook owner user
token- Webhook token used for authenticationurl- Webhook URL for sending messages
Dependencies
- Discord API accessed via discord.js library
- An API key credential for Discord bot authentication
Troubleshooting
- Ensure the bot token credential is valid and has permissions to access the specified guild and channel.
- Verify that the provided Guild ID and Channel ID are correct and that the channel belongs to the guild.
- Check that the bot has the 'Manage Webhooks' permission in the channel to fetch webhooks.
- If the channel does not support webhooks, the node will throw an error indicating this limitation.
Links
- Discord API - Get Webhook - Official Discord API documentation for webhook retrieval.