New Webhook Client (Expression) — DiSky

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

Syntax

[a] new webhook client (from|with) [the] [webhook] url %text% [using [the] [bot] %types.bot%]

Description

Creates a webhook client from a webhook URL (including its token). A bot is only used to carry the HTTP requests; when none is given, the only loaded bot is used.

Examples

set {_hook} to a new webhook client from url "https://discord.com/api/webhooks/123/abc"
set {_hook} to a new webhook client with url {url} using bot "MyBot"

View source