Webhook routes.

Constructors

  • Parameters

    • manager: RESTManager

      REST Manager needed to execute request.

    Returns Webhooks

Methods

  • Create a webhook

    Parameters

    • guildID: string

      ID of a guild.

    • channelID: string

      ID of a channel.

    • name: string

      Name of the new webhook.

    Returns Promise<Webhook>

  • Delete a webhook

    Parameters

    • guildID: string

      ID of a guild.

    • webhookID: string

      ID of an existent webhook.

    Returns Promise<void>

  • Update a webhook

    Parameters

    • guildID: string

      ID of a guild.

    • webhookID: string

      ID of an existent webhook.

    • options: EditWebhookOptions

      Edit options.

    Returns Promise<Webhook>

  • Execute a webhook.

    Parameters

    • webhookID: string

      ID of the webhook to execute.

    • token: string

      Token of the webhook, needed to execute it.

    • options: WebhookExecuteOptions

      Execute Options.

    Returns Promise<WebhookMessageDetails>

  • This method is used to get a specific webhook.

    Parameters

    • guildID: string

      ID of a guild.

    • webhookID: string

      ID of a webhook.

    Returns Promise<Webhook>

  • This method is used to get a list of Webhook.

    Parameters

    • guildID: string

      ID of a guild.

    • channelID: string

      ID of a channel.

    Returns Promise<Webhook[]>