$createWebhook
Creates a webhook in a channel your bot can see and returns the webhook URL.

FUNCTION USAGE

  • $createWebhook[channelID;name;avatarURL]

Properties:

channelID - Provide the channel ID of where the webhook will be created and used for sending content. name - Supply the new name of the webhook. avatarURL - Supply an image link to attach to your new webhook.

Example: Creating a webhook in the current channel with your own avatar.

bot.Command({
name: "makehook",
code: `
$createWebhook[$channelID[];$message[];$authorAvatar]
`
})
Copy link