$createWebhook
Creates a webhook in a specified channel.
::: tip Webhooks Webhooks are a simple way to send automated messages to different servers, potentially with custom user profiles. :::
::: warning Permissions
The bot requires the Manage Webhooks permission in the target channel to execute this function successfully.
:::
Usage: $createWebhook[channelID;name;avatarURL;returnWebhookID&Token (yes/no);separator]
Parameters:
channelID: The ID of the channel where the webhook will be created.name: The name of the webhook.avatarURL: The URL of the avatar image for the webhook.returnWebhookID&Token (yes/no): Specifies whether the function should return the webhook’s ID and token after creation. Useyesto return the ID and Token, andnoto return nothing.separator: The separator used to delimit the webhook ID and token whenreturnWebhookID&Tokenis set toyes.
Example:
In this example, a webhook named “WikiHook” is created in the channel specified by $channelid. The webhook is given a specific avatar. The command then returns the webhook ID and Token, separated by /.