From 4718e68c78c17417edb3aaf5c86680b238294a11 Mon Sep 17 00:00:00 2001 From: neru Date: Wed, 14 Jan 2026 02:31:44 -0300 Subject: [PATCH] feat: add getCommands and getCategories --- src/bot.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 4540f6b..e5f8637 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -10,7 +10,7 @@ import { } from 'discord.js'; import { Logger } from './utils/log'; import { config } from './utils/config'; -import { CommandManager } from './commands'; +import { Command, CommandCategory, CommandManager } from './commands'; import { DatabaseManager } from './modules/db'; type BotEventListeners = { @@ -83,6 +83,14 @@ export class Bot { await this.client.login(config.token); } + public getCommands(): Array { + return this.cmdMgr.getAll(); + } + + public getCategories(): Array { + return this.cmdMgr.getCategories(); + } + /* event listeners */