Constructs a new Webhook instance.
The Discord client instance.
The data representing the webhook.
ReadonlyclientOptionalguildMethods related to interacting with messages through the webhook.
Deletes a message sent through the webhook.
Edits a message sent through the webhook.
Writes a message through the webhook.
OptionalsourceOptionalsourceThe source guild of the webhook, if applicable.
OptionaltokenOptionalurlOptionaluserThe user associated with the webhook, if applicable.
createdAt gets the creation Date instace of the current object.
Create a timestamp for the current object.
Retrieves the avatar URL of the webhook.
Optionaloptions: CDNUrlOptionsThe image options for the avatar.
The avatar URL of the webhook, or null if no avatar is set.
Fetches the channel associated with the webhook.
Optionalmode: "rest" | "flow"A promise that resolves to the channel associated with the webhook, or undefined if not applicable.
Fetches the channel associated with the webhook.
A promise that resolves to the channel associated with the webhook, or undefined if not applicable.
Deletes the webhook.
Optionalreason: stringThe reason for deleting the webhook.
A promise that resolves when the webhook is successfully deleted.
Edits the webhook.
The new webhook data.
Optionalreason: stringThe reason for editing the webhook.
A promise that resolves when the webhook is successfully edited.
Fetches the webhook data from the Discord API.
A promise that resolves to the fetched webhook data.
Fetches the guild associated with the webhook.
Optionalmode: "rest" | "flow"A promise that resolves to the guild associated with the webhook, or undefined if not applicable.
Fetches the guild associated with the webhook.
A promise that resolves to the guild associated with the webhook, or undefined if not applicable.
StaticmessagesStatic methods related to interacting with messages through webhooks.
Deletes a message sent through the webhook.
Edits a message sent through the webhook.
Writes a message through the webhook.
StaticmethodsStatic methods related to managing webhooks.
Represents a Discord webhook.