Skip to content

$modifyWebhook

$modifyWebhook will modify a given webhook.

Usage

$modifyWebhook[webhookID;name;avatar;channelID?;reason?]

Parameters

FieldTypeDescriptionRequired
webhookIDnumberThe webhook ID to modify.true
namestringNew webhook name.true
avatarstringNew webhook avatar.true
channelID?numberID of the channel where the webhook is located in.false
reason?stringReason 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:

1
client.command({
2
name: "modifyWebhook",
3
code: `
4
$modifyWebhook[webhookID;Hello!;$userAvatar[$authorID];$channelID;Testing!]
5
`
6
});