$createWebhook
Creates a webhook in a specified channel.
Webhooks
Webhooks are a simple way to send automated messages to different servers, potentially with custom user profiles.
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 /.
Function difficulty: Medium
Tags: Webhook Creation
⏱️ Function Cooldown
This function has a built-in cooldown to help prevent excessive usage.
| Property | Value |
|---|---|
| ⏱️ Duration | 5 minutes |
| 🆔 Tracked By | User |
| 🌐 Scope | Webhookuser |
Functions with the same Scope share cooldowns based on the same
Tracked Byvalue.
💎 Tier 3+ servers bypass this cooldown. See Premium Perks.