This package creates an easy way to send webhooks, as well as providing fallbacks if the client does not have the proper permissions.
If the client does not have the permission Manage Webhooks
, it will send a normal message instead, causing no issues and working seamlessly
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
channel | textChannel |
false | none | The channel to send the webhook to |
message |
string or embed
|
false | none | The message or embed to send |
options | object |
true | none | The options for the webhook |
options.name | string |
true | Server Invite | The title of the webhook |
options.icon | iconURL |
true | Webhook Icon | The icon of the webhook |
Image | Code |
---|---|
*Icons by Nick Roach |
Be sure to check the license before downloading/using an icon