Skip to content

Commit

Permalink
Fix broken imports on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
fowled committed Apr 19, 2024
1 parent 61a9992 commit 3aae1ba
Show file tree
Hide file tree
Showing 2 changed files with 1,044 additions and 875 deletions.
4 changes: 2 additions & 2 deletions app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function binder() {

Promise.all(
eventFiles.map(async (file) => {
const event: Event = await import(resolve(file));
const event: Event = (await import(resolve(file))).default;

if (event.once) {
client.once(event.name, async (...args) => await event.execute(client, ...args));
Expand All @@ -54,7 +54,7 @@ function binder() {

Promise.all(
commandFiles.map(async (file) => {
const command: Command = await import(resolve(file));
const command: Command = (await import(resolve(file))).default;

clientInteractions.set(command.name, command);
}),
Expand Down
Loading

0 comments on commit 3aae1ba

Please sign in to comment.