Instance Method

execute(with:then:)

Executes a webhook

Declaration

func execute(with content: Any, then completion: ((RequestError?) -> Void)? = nil)

Parameters

content

String or dictionary containing message content

Content Dictionary Params

  • content: Message to send

  • username: The username the webhook will send with the message

  • avatar_url: The url of the user the webhook will send

  • tts: Whether or not this message is tts

  • file: The url of the image to send

  • embed: The embed object to send. Refer to Embed structure