mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: member helper perms
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user