Skip to content
Webhooks & Integrations webhookTitle

$webhookTitle

The $webhookTitle function stages the title of the embed for the message that will be sent to the given webhook.

Syntax

$webhookTitle[webhookURL;title]

Parameters

Parameter Description
webhookURL Required. The full Discord webhook URL (https://discord.com/api/webhooks/ID/TOKEN). An invalid URL raises Invalid Discord webhook URL.
title Required. The value to stage. It must contain 1 to 256 characters; otherwise the error Webhook text must contain 1–256 characters. is raised.

Exactly two arguments are required; any other count is refused (“Invalid argument count”).

Return Value

An empty string. The value is only staged; nothing is sent yet.

Behavior

  • The value is staged per webhook URL.
  • The title is part of the embed, which is sent with $webhookSend.
  • Calling $webhookTitle again for the same webhook replaces the staged value.
  • $webhookSend[webhookURL] sends the staged message and clears it.
  • If a staged message (with text content or an embed other than just a color) has not been sent when the script ends normally, it is sent automatically. If the script is stopped, staged webhook messages are discarded.

Examples

Embed with a title

$webhookTitle[https://discord.com/api/webhooks/123456/abcdef;✅ Task Completed]
$webhookDescription[https://discord.com/api/webhooks/123456/abcdef;The automatic data backup was completed successfully.]
$webhookColor[https://discord.com/api/webhooks/123456/abcdef;#57F287]
$webhookSend[https://discord.com/api/webhooks/123456/abcdef]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.