DiSky DiSky v5.0.0-b1

Webhook Client

type

Something that can post messages through a webhook: either a webhook retrieved from a guild or channel, or a client built from a webhook URL alone. A client built from a URL needs no permission in the guild and can post even where no bot is present; it can only send, edit and delete its own messages.

3 / 3

Properties

1
propertyTextsince 5.0.0-a2
[the] webhook token of %webhookclient%
%webhookclient%'s webhook token

The secret token of the webhook, or nothing when Discord did not expose it (for example a channel follower webhook). Anyone holding it can post through the webhook.

mentioned inWebhook clients
Helpful?

Effects

1
effectasync since 5.0.0-a2
Feeling lost? This is covered in the guide Posting through a webhook
make [the] [webhook] [client] %webhookclient% (post|send|speak) %string/embedbuilder/component/messageaction% [with [the] username %-string%] [[and] [with] [the] avatar [url] %-string%] [in [the] thread %-threadchannel%]

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.

Helpful?

Expressions

1
expressionWebhook Clientsince 5.0.0-a2
Feeling lost? This is covered in the guide Webhook clients
[a] new webhook client (from|with) [the] [webhook] url %string% [using [the] [bot] %-bot%]

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.

Helpful?

Returned by

1

Syntaxes elsewhere in DiSky that return Webhook Client.

Documentation

3

Hand-written guides that cover Webhook Client.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.