Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Izocel committed May 8, 2024
1 parent 936b745 commit 29c56d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Empty file.
Empty file.
7 changes: 3 additions & 4 deletions src/class/appClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export class AppClient extends Client {
console.info("\nLoading plugin:", pluginDir);

await this.registerEventListenerFromDir(`${pluginDir}/events`);
const pluginCommands = await this.getSlashCommandsFromDir(`${pluginDir}/commands`);
pluginCommands && publics.push(pluginCommands.publics);
pluginCommands && privates.push(pluginCommands.privates);
const { publics: plu, privates: pri } = await this.getSlashCommandsFromDir(`${pluginDir}/commands`);
publics.push(plu);
privates.push(pri);
}

return { publics, privates };
Expand Down Expand Up @@ -180,7 +180,6 @@ export class AppClient extends Client {

// Get all files from commands _dir
const commandFiles = await getFiles(dirPath);

if (!commandFiles?.length) {
console.warn("No commands found:", dirPath);
return { publics, privates };
Expand Down

0 comments on commit 29c56d7

Please sign in to comment.