class WebhooksAPI

export declare class WebhooksAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the WebhooksAPI class

deleteMessage(
token: string
messageId: Snowflake
options?: { thread_id?: string; }
) : Promise<void>

Deletes an associated message from a webhook

See also: https://discord.com/developers/docs/resources/webhook#delete-webhook-message

editMessage(
token: string
messageId: Snowflake
data: RESTPatchAPIWebhookWithTokenMessageJSONBody & { thread_id?: string; }
) : Promise<APIMessage>

Edits an associated message from a webhook

See also: https://discord.com/developers/docs/resources/webhook#edit-webhook-message

getMessage(
token: string
messageId: Snowflake
options?: { thread_id?: string; }
) : Promise<APIMessage>

Fetches an associated message from a webhook

See also: https://discord.com/developers/docs/resources/webhook#get-webhook-message