Instance Method

createWebhook(with:then:)

Creates a webhook for this channel

Declaration

func createWebhook(with options: [String : String] = [:], then completion: ((Webhook?, RequestError?) -> Void)? = nil)

Parameters

options

Preconfigured options to create this webhook with

Options Params

  • name: The name of the webhook

  • avatar: The avatar string to assign this webhook in base64