Instance Method

executeSlackWebhook(_:token:with:then:)

Executes a slack style webhook

Declaration

func executeSlackWebhook(_ webhookId: Snowflake, token webhookToken: String, with content: [String : Any], then completion: ((RequestError?) -> Void)? = nil)

Parameters

webhookId

Webhook to execute

webhookToken

Token for auth to execute

content

The slack webhook content to send

Content Params

Refer to the slack documentation for their webhook structure