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 38d3f53 commit 936b745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 { publics: plu, privates: pri } = await this.getSlashCommandsFromDir(`${pluginDir}/commands`);
publics.push(plu);
privates.push(pri);
const pluginCommands = await this.getSlashCommandsFromDir(`${pluginDir}/commands`);
pluginCommands && publics.push(pluginCommands.publics);
pluginCommands && privates.push(pluginCommands.privates);
}

return { publics, privates };
Expand Down

0 comments on commit 936b745

Please sign in to comment.