Skip to content

$createWebhook

$createWebhook will create a webhook.

Usage

$createWebhook[channelID;name;avatar;reason;sep?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberChannel ID of where the webhook will be created in.true
namestringThe webhook’s display name.true
avatarstringThe webhook avatar url.true
reasonstringReason which will be displayed in the guild’s audit logs.true
sep?stringThe separator which will be used to separate important credentials like token and ID, default “.false

Example(s)

This will create a webhook in the current channel:

1
client.command({
2
name: "createWebhook",
3
code: `
4
$createWebhook[$channelID;aoi.js is great;$userAvatar[$authorID];Just testing.;, ]
5
`
6
});