From 898ceec96d89f82f7c036cc2a9f7072b2e25cad8 Mon Sep 17 00:00:00 2001 From: Jaron Date: Sat, 1 Nov 2025 12:16:28 -0500 Subject: [PATCH] some comments and console.log cleanup --- rewrite/commandManager.ts | 5 +---- rewrite/index.ts | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/rewrite/commandManager.ts b/rewrite/commandManager.ts index 6b693f8..4ad4f7e 100644 --- a/rewrite/commandManager.ts +++ b/rewrite/commandManager.ts @@ -104,6 +104,7 @@ export class UnicordCommandManager { return Promise.resolve(validated as ArgumentTypeFromOptions); }; + // TODO: Register application commands with the DiscordAPI register( type: UnicordEventType.ChatCommands | UnicordEventType.ApplicationCommands, event: string, @@ -118,11 +119,7 @@ export class UnicordCommandManager { // Generate a closure to wrap the handler const wrappedHandler = (async (context: UnicordCommandContext, args: any[]) => { - console.log('Raw Args:', args); - console.log('options:', options.args); const resolvedArgs = await this.validateAndResolveArgs(args, options.args); - console.log('Resolved Args:', resolvedArgs); - // TODO: Fix context type here return handler(context, resolvedArgs); }) as UnicordCommandHandler; diff --git a/rewrite/index.ts b/rewrite/index.ts index 5d5897b..23c9f3f 100644 --- a/rewrite/index.ts +++ b/rewrite/index.ts @@ -28,11 +28,6 @@ export class Unicord { readonly discordAPI: UnicordDiscordAPI; private readonly eventProcessor: UnicordEventProcessor; private readonly gatewayManager: UnicordGatewayManager; - // TODO: split command management out of the event processor - // This way we can properly store and manage registered commands - // This will enable features like command listing, removal, autogenerated help, etc. - // We can also go registration with the Discord API here - // This will also eliminate the weird helper methods on the Unicord class itself private readonly commandManager: UnicordCommandManager; readonly caches: { readonly users: UnicordUsersCache;