Webhooks

Relay messages through a webhook with a custom username and avatar.

Whats a webhook ?

A webhook is a way to post a message with a custom username and avatar to a channel.

Create a webhook

You can create a webhook by using the webhook create command.

,webhook create (name) [channel]

Note:

The channel is optional. If you don't specify it, the webhook will be created in the current channel.

Configure a webhook

To configure a webhook, you'll need to use discord webhook features, going to server settings, then webhook. You can edit the name, the channel, and the avatar. We didn't add a command to configure a webhook, because it is not necessary and add unneccessary complexity.

Sending a message with a webhook

You can send a message with a webhook by using the webhook send command.

,webhook send (webhook_code) (message) [--add (embed code)]

Note:

To find the webhook code, you can use the webhook list command, or remember it from it creation.

Edit a webhook

You can edit a webhook by using the webhook edit command.

,webhook edit (webhook_code) (message link) [(new message)

More about webhooks

Here are the remaining webhook commands, and all of them except webhook list require a webhook code :

CommandDescription
deletePermanently delete a webhook using its identifier.
listList all webhooks in the server that were created or are managed by the bot, showing their IDs and owners.
lockRestrict the webhook so only the creator or administrators can use it to send messages.
unlockRemove the lock from a webhook, allowing authorized users with 'Manage Webhooks' to use it.