Class ChannelWebhookManager

The manager of webhooks that belong to a channel.

Example

new ChannelWebhookManager(channel);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

cache: CacheCollection<string, Webhook>

This cache of the manager.

channel: Channel

The channel the webhooks belong to.

client: Client

The client the manager belongs to.

Methods

  • Edit a webhook in the channel.

    Returns

    The edited webhook.

    Example

    webhooks.edit(webhook, 'My Webhook');
    

    Parameters

    • webhook: string | Webhook

      The webhook to edit.

    • name: string

      The name of the webhook.

    • Optional channelId: string

      The ID of the channel to move the webhook to.

    Returns Promise<Webhook>