$modifyWebhook
$modifyWebhook
will modify a given webhook.
Usage
$modifyWebhook[webhookID;name;avatar;channelID?;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
webhookID | number | The webhook ID to modify. | true |
name | string | New webhook name. | true |
avatar | string | New webhook avatar. | true |
channelID? | number | ID of the channel where the webhook is located in. | false |
reason? | string | Reason that will be displayed in the guild’s audit logs. | false |
Example(s)
This will modify a existing webhook and change it’s avatar to your user avatar:
1client.command({2 name: "modifyWebhook",3 code: `4 $modifyWebhook[webhookID;Hello!;$userAvatar[$authorID];$channelID;Testing!]5 `6});