Create a new Method Handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.webhook.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Disable [at]everyone/[at]here on outgoing messages
Create a new Webhook
Id of the channel
Object with webhook properties
(https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure)
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | always |
Delete a Webhook
Id of the webhook
Webhook token
Resolves the Promise on successful execution
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | without token |
Delete a message sent by a Webhook
Id of the Webhook
Webhook token
Id of the message
Id of the thread the message was sent in
Resolves the Promise on successful execution
Edit a message sent by a Webhook
Id of the Webhook
Webhook token
Id of the message
Data to send
Send a message via Webhook
Id of the webhook
webhook token
Webhook data to send
Options for executing the webhook
Resolves the Promise on successful execution unless wait is set to true, which returns a message object
Executes a github style Webhook
Id of the Webhook
Webhook token
Check GitHub's documentation
Options for executing the webhook
Resolves the Promise on successful execution
Execute a slack style Webhook
Id of the Webhook
Webhook token
Check Slack's documentation
Options for executing the webhook
Resolves the Promise on successful execution
Get all webhooks within a channel
Id of the channel
Array of Webhook Objects
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | always |
Get all webhooks within a guild
Id of the guild
Array of Webhook Objects
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | always |
Get a single Webhook via Id
Id of the webhook
Webhook token
(https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure)
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | without token |
Get a single message from a specific Webhook via Id
Id of the Webhook
Webhook token
Id of the message
Id of the thread the message was sent in
Update a webhook
Id of the webhook
Webhook token
Updated Webhook properties
Updated Webhook Object
Permissions needed | Condition |
---|---|
MANAGE_WEBHOOKS | without token |
Generated using TypeDoc
Methods for handling webhook interactions