The webhook client.
Extends
BaseClientName | Type | Optional | Description |
---|---|---|---|
data | WebhookClientData | No | None |
options | WebhookClientOptions | Yes | None |
The REST manager of the client
Inherited from BaseClientThe options the client was instantiated with
Inherited from BaseClientThe REST manager of the client
Inherited from BaseClientDeletes the webhook.
Name | Type | Optional | Description |
---|---|---|---|
reason | string | Yes | Reason for deleting this webhook |
Delete a message that was sent by this webhook.
Name | Type | Optional | Description |
---|---|---|---|
message | MessageResolvable | '@original' | No | The message to delete |
threadId | Snowflake | Yes | The id of the thread this message belongs to |
Deletes a webhook.
Name | Type | Optional | Description |
---|---|---|---|
id | Snowflake | No | The webhook's id |
options | WebhookDeleteOptions | Yes | Options for deleting the webhook |
Destroys all assets used by the base client.
Inherited from BaseClientEdits this webhook.
Name | Type | Optional | Description |
---|---|---|---|
options | WebhookEditOptions | No | Options for editing the webhook |
Edits a message that was sent by this webhook.
Returns
Returns the message edited by this webhookName | Type | Optional | Description |
---|---|---|---|
message | MessageResolvable | No | The message to edit |
options | string | MessagePayload | WebhookMessageEditOptions | No | The options to provide |
Gets a message that was sent by this webhook.
Returns
Returns the message sent by this webhookName | Type | Optional | Description |
---|---|---|---|
message | Snowflake | No | The id of the message to fetch |
options | WebhookFetchMessageOptions | Yes | The options to provide to fetch the message. |
Sends a message with this webhook.
Name | Type | Optional | Description |
---|---|---|---|
options | string | MessagePayload | WebhookMessageCreateOptions | No | The content for the reply |
Sends a raw slack message with this webhook.
Example
Name | Type | Optional | Description |
---|---|---|---|
body | object | No | The raw body to send |
Inherited from BaseClient
Deletes a webhook.
Name | Type | Optional | Description |
---|---|---|---|
id | Snowflake | No | The webhook's id |
options | WebhookDeleteOptions | Yes | Options for deleting the webhook |
Destroys all assets used by the base client.
Inherited from BaseClientInherited from BaseClient