Webhooks
guidePost messages under a custom name and avatar, from a webhook the bot creates or from a webhook URL alone.
A webhook posts messages into one channel under its own name and avatar, without being a member of the guild. This section covers getting hold of a webhook and posting through it. You're assumed to have a bot named "my-bot" logged in (see Starting a bot) and to know how sending messages works.
Webhooks and webhook clients
DiSky has two entities for this. A webhook is the Discord object itself: the bot created it or read it from a guild, so it carries a name, a channel, an owner, and can be renamed or deleted. A webhook client is anything that can post through a webhook, including a client built from a webhook URL alone. Every webhook is also a webhook client, so every posting effect accepts both.
You have | You get | Can post | Can rename, move, delete |
|---|---|---|---|
A channel where the bot has Manage Webhooks | a | yes | yes |
Only a webhook URL | a | yes | no |
Reading order
- Webhook clients: creating a webhook, retrieving existing ones, building a client from a URL, and the webhook properties.
- Posting through a webhook: the
make ... posteffect, the webhook message builder, editing and deleting what a webhook sent, threads.