mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
|
|
export interface DeleteWebhookMessageOptions {
|
|
/** id of the thread the message is in */
|
|
threadId: bigint;
|
|
}
|
|
|
|
export async function deleteWebhookMessage(
|
|
bot: Bot,
|
|
webhookId: bigint,
|
|
webhookToken: string,
|
|
messageId: bigint,
|
|
options?: DeleteWebhookMessageOptions,
|
|
) {
|
|
await bot.rest.runMethod<undefined>(
|
|
bot.rest,
|
|
"DELETE",
|
|
bot.constants.routes.WEBHOOK_MESSAGE(webhookId, webhookToken, messageId, options),
|
|
);
|
|
}
|