$messageWebhookID
$messageWebhookID
will return the ID of the webhook which sent the given message.
Usage
$messageWebhookID[messageID?;channelID?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
messageID? | number | ID of the message. | false |
channelID? | number | ID of the message where the message is located in. | false |
Example(s)
This will return the ID of a webhook, make sure to replace “messageID” with an actual message ID sent from a webhook:
1client.command({2 name: "messageWebhookID",3 code: `4 $messageWebhookID[messageID;$channelID] //replace messageID5 `6});