I didnt save the import 😭
This commit is contained in:
parent
31a8fedf2d
commit
758be94728
@ -377,7 +377,7 @@ export class Client extends TypedEventEmitter<LinkUpEvents> {
|
||||
const commands = await promisify(glob)(normalize(path + "/**/*.{ts,js}"));
|
||||
for (const commandPath of commands) {
|
||||
try {
|
||||
let command: MaybeCommand = await require(commandPath);
|
||||
let command: MaybeCommand = await import(commandPath);
|
||||
if ('default' in command) command = command.default;
|
||||
if (command.constructor.name === 'Object') command = Object.values(command)[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user