WebhookClient

export class WebhookClient extends WebhookMixin(BaseClient)
export class WebhookClient extends WebhookMixin(BaseClient)
The webhook client.

Extends

WebhookMixin(BaseClient)
constructor(data, options?)
NameTypeOptionalDescription
dataWebhookClientDataNoNone
optionsWebhookClientOptionsYesNone
Readonly
client:this
The options the webhook client was instantiated with.
token:string
editMessage(message, options):Promise<APIMessage>
Edits a message that was sent by this webhook.
Returns
Returns the message edited by this webhook
NameTypeOptionalDescription
messageMessageResolvableNoThe message to edit
optionsstring | MessagePayload | WebhookMessageEditOptionsNoThe options to provide
fetchMessage(message, options?):Promise<APIMessage>
Gets a message that was sent by this webhook.
Returns
Returns the message sent by this webhook
NameTypeOptionalDescription
messageSnowflakeNoThe id of the message to fetch
optionsWebhookFetchMessageOptionsYesThe options to provide to fetch the message.
send(options):Promise<APIMessage>
Sends a message with this webhook.
NameTypeOptionalDescription
optionsstring | MessagePayload | WebhookMessageCreateOptionsNoThe content for the reply