Hierarchy

  • WebhookService

Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Create a webhook

    Throws

    ApiError

    Parameters

    • options: {
          requestBody: {
              channelId: string;
              name: string;
          };
          serverId: string;
      }
      • requestBody: {
            channelId: string;
            name: string;
        }
        • channelId: string

          Channel ID to create the webhook in

        • name: string

          The name of the webhook

      • serverId: string

    Returns CancelablePromise<{
        webhook: WebhookPayload;
    }>

    any Success

  • Update a webhook

    Throws

    ApiError

    Parameters

    • options: {
          requestBody: {
              channelId?: string;
              name: string;
          };
          serverId: string;
          webhookId: string;
      }
      • requestBody: {
            channelId?: string;
            name: string;
        }
        • Optional channelId?: string

          The ID of the channel

        • name: string

          The name of the webhook

      • serverId: string
      • webhookId: string

    Returns CancelablePromise<{
        webhook: WebhookPayload;
    }>

    any Success

Generated using TypeDoc