Constructs a new Webhook instance.
The Discord client instance.
The data representing the webhook.
Readonly
clientOptional
guildMethods 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.
Optional
sourceOptional
sourceThe source guild of the webhook, if applicable.
Optional
tokenOptional
urlOptional
userThe 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.
Optional
options: 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.
Optional
mode: "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.
Optional
reason: stringThe reason for deleting the webhook.
A promise that resolves when the webhook is successfully deleted.
Edits the webhook.
The new webhook data.
Optional
reason: 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.
Optional
mode: "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.
Static
messagesStatic 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.
Static
methodsStatic methods related to managing webhooks.
Represents a Discord webhook.