Make Webhook Post (Effect) — DiSky

Addon: DiSky · Category: Effect · Since: 5.0.0-a2

Syntax

make [the] [webhook] [client] %types.webhookclient% (post|send|speak) %text/types.embedbuilder/types.component/types.messageaction% [with [the] username %text%] [[and] [with] [the] avatar [url] %text%] [in [the] thread %types.threadchannel%]

Description

Makes a webhook, or a webhook client built from a URL, post a message. The username and avatar override the webhook's own for this message only. The sent message is discarded; build a webhook message and read 'the build result of' it to keep it.

Examples

make webhook client {_hook} post "Hello from the webhook!"
make {_hook} post {_embed} with username "Announcer" and avatar "https://example.com/a.png"
make {_hook} speak "In a thread" in thread {_thread}

View source