From d388cb5553107a2935028ac4c3021afc57c07dea Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sun, 15 Sep 2024 23:51:38 +0000 Subject: [PATCH] fix: types --- src/commands/applications/chat.ts | 2 +- src/commands/applications/chatcontext.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/applications/chat.ts b/src/commands/applications/chat.ts index e98d72c..f024592 100644 --- a/src/commands/applications/chat.ts +++ b/src/commands/applications/chat.ts @@ -369,5 +369,5 @@ export abstract class SubCommand extends BaseCommand { }; } - abstract run(context: CommandContext): any; + abstract run(context: CommandContext): any; } diff --git a/src/commands/applications/chatcontext.ts b/src/commands/applications/chatcontext.ts index 64f71fc..d4bb278 100644 --- a/src/commands/applications/chatcontext.ts +++ b/src/commands/applications/chatcontext.ts @@ -17,12 +17,12 @@ import type { RegisteredMiddlewares } from '../decorators'; import type { Command, ContextOptions, OptionsRecord, SubCommand } from './chat'; import type { CommandMetadata, ExtendContext, GlobalMetadata, UsingClient } from './shared'; -export interface CommandContext +export interface CommandContext extends BaseContext, ExtendContext {} export class CommandContext< - T extends OptionsRecord = never, + T extends OptionsRecord = {}, M extends keyof RegisteredMiddlewares = never, > extends BaseContext { message!: If;