Instance Method

createWebhook(for:with:then:)

Creates a webhook for a channel

Declaration

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

Parameters

channelId

Guild channel to create webhook for

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