diff --git a/src/Structures/Utils.ts b/src/Structures/Utils.ts index a23dbe1..174e1b1 100644 --- a/src/Structures/Utils.ts +++ b/src/Structures/Utils.ts @@ -208,9 +208,9 @@ export class Plugin { } const structures = { - Player: (await import("./Player")).Player, - Queue: (await import("./Queue")).Queue, - Node: (await import("./Node")).Node, + Player: require("./Player").Player, + Queue: require("./Queue").Queue, + Node: require("./Node").Node, }; export interface UnresolvedQuery { diff --git a/test/manager.ts b/test/manager.ts index 5755968..42320f3 100644 --- a/test/manager.ts +++ b/test/manager.ts @@ -1,4 +1,4 @@ -import { Manager } from "../src/structures/Manager"; +import { Manager } from "../src"; let client = new Manager({ nodes: [ diff --git a/test/player.ts b/test/player.ts index 9cc1821..fc28c0b 100644 --- a/test/player.ts +++ b/test/player.ts @@ -1,5 +1,5 @@ import { Client } from "discord.js"; -import { Manager } from "../src/structures/Manager"; +import { Manager } from "../src"; let client = new Client({ intents: [ @@ -13,8 +13,8 @@ let client = new Client({ let manager = new Manager({ nodes: [ { - host: 'localhost', - port: 2333, + host: 'lavalink.jirayu.net', + port: 13592, password: 'youshallnotpass', }, ],