fix: remove stage channels when finished

This commit is contained in:
Skillz4Killz
2021-11-24 16:33:10 +00:00
committed by GitHub
parent f775efbb0a
commit 7d9a4636fb
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { bot } from "../mod.ts";
Deno.test("[stage] Create a stage instance", async (t) => {
const stage = await bot.helpers.createChannel(CACHED_COMMUNITY_GUILD_ID, {
name: "instance",
name: "createinstance",
type: ChannelTypes.GuildStageVoice,
});
const instance = await bot.helpers.createStageInstance(stage.id, "test it");
@@ -21,4 +21,6 @@ Deno.test("[stage] Create a stage instance", async (t) => {
await t.step("[stage] Delete a stage instance", async () => {
await bot.helpers.deleteStageInstance(stage.id);
});
await bot.helpers.deleteChannel(stage.id);
});