mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-28 22:40:19 +00:00
13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { assertExists } from "../deps.ts";
|
|
import { bot, channel } from "../mod.ts";
|
|
|
|
Deno.test("[webhooks] Delete a webhook with token", async () => {
|
|
const webhook = await bot.helpers.createWebhook(channel.id, {
|
|
name: "amethyst",
|
|
});
|
|
|
|
assertExists(webhook.token);
|
|
|
|
await bot.helpers.deleteWebhookWithToken(webhook.id, webhook.token);
|
|
});
|