Skip to content

$sendWebhookMessage

$sendWebhookMessage will send a message using an existing webhook.

Usage

$sendWebhookMessage[webhookID;webhookToken;content;returnID?]

Parameters

FieldTypeDescriptionRequired
webhookIDnumberThe webhook ID.true
webhookTokenstringThe webhook Token.true
contentstringThe content of the message to send.true
returnID?booleanReturn message ID?
1. true
2. false (default)
false

Example(s)

This will create a webhook and send a message using it:

1
client.command({
2
name: "sendWebhookMessage",
3
code: `
4
$sendWebhookMessage[$splitText[1];$splitText[2];Hello!;false]
5
$textSplit[$createWebhook[$channelID;$username;$userAvatar;Testing!;,];,]
6
` /* Using $textSplit to split the ID and Token in separate parts to use it in sendWebhookMessage
7
$splitText[1] equals the webhook ID
8
$splitText[2] equals the webhook Token
9
*/
10
});