Skip to content

Commit

Permalink
Merge pull request #30 from EwarinDev/dev
Browse files Browse the repository at this point in the history
Refactor import statements in Utils.ts and test files
  • Loading branch information
EvarinDev authored Sep 8, 2024
2 parents 65c3d6f + ff6d434 commit 81cbcfe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Structures/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Manager } from "../src/structures/Manager";
import { Manager } from "../src";

let client = new Manager({
nodes: [
Expand Down
6 changes: 3 additions & 3 deletions test/player.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Client } from "discord.js";
import { Manager } from "../src/structures/Manager";
import { Manager } from "../src";

let client = new Client({
intents: [
Expand All @@ -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',
},
],
Expand Down

0 comments on commit 81cbcfe

Please sign in to comment.