The channel the webhooks belong to.
Readonly
cacheThis cache of the manager.
Readonly
channelThe channel the webhooks belong to.
Readonly
clientThe client the manager belongs to.
Edit a webhook in the channel.
The edited webhook.
webhooks.edit(webhook, 'My Webhook');
The webhook to edit.
The name of the webhook.
Optional
channelId: stringThe ID of the channel to move the webhook to.
Fetch a webhook from the channel, or cache.
The fetched webhook.
webhooks.fetch(webhook);
The webhoook to fetch.
Optional
options: FetchOptionsThe options to fetch the webhook with.
Fetch multiple webhooks from the channel.
The fetched webhooks.
webhooks.fetch();
Optional
options: FetchManyOptionsThe options to fetch webhooks with.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
The manager of webhooks that belong to a channel.
Example