fix: member helper perms

This commit is contained in:
Skillz4Killz
2021-12-08 20:17:49 +00:00
committed by GitHub
parent b422e6b62a
commit 854db909ae
8 changed files with 18 additions and 71 deletions
+1 -8
View File
@@ -3,7 +3,7 @@ import { assertEquals } from "../deps.ts";
import { bot, guild } from "../mod.ts";
import { delayUntil } from "../utils.ts";
Deno.test("[channel] Connect to voice channel and disconnect.", async () => {
Deno.test("[channel] Connect to voice channel.", async () => {
const channel = await bot.helpers.createChannel(guild.id, {
name: "lumap",
type: ChannelTypes.GuildVoice,
@@ -22,11 +22,4 @@ Deno.test("[channel] Connect to voice channel and disconnect.", async () => {
await delayUntil(10000, () => joined);
assertEquals(joined, true);
// DISCONNECT BOT
await bot.helpers.disconnectMember(guild.id, bot.id);
// WAIT FOR EVENT TO ARRIVE
await delayUntil(10000, () => !joined);
assertEquals(joined, false);
});