Instance Method

modifyWebhook(_:token:with:then:)

Modifies a webhook

Declaration

func modifyWebhook(_ webhookId: Snowflake, token: String? = nil, with options: [String : String], then completion: ((Webhook?, RequestError?) -> Void)? = nil)

Parameters

webhookId

Webhook to modify

options

Preconfigured options to modify webhook with

Option Params

  • name: The name given to the webhook

  • avatar: The avatar image to give webhook in base 64 string