mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: types
This commit is contained in:
parent
f288292208
commit
d388cb5553
@ -369,5 +369,5 @@ export abstract class SubCommand extends BaseCommand {
|
||||
};
|
||||
}
|
||||
|
||||
abstract run(context: CommandContext<any>): any;
|
||||
abstract run(context: CommandContext): any;
|
||||
}
|
||||
|
@ -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<T extends OptionsRecord = never, M extends keyof RegisteredMiddlewares = never>
|
||||
export interface CommandContext<T extends OptionsRecord = {}, M extends keyof RegisteredMiddlewares = never>
|
||||
extends BaseContext,
|
||||
ExtendContext {}
|
||||
|
||||
export class CommandContext<
|
||||
T extends OptionsRecord = never,
|
||||
T extends OptionsRecord = {},
|
||||
M extends keyof RegisteredMiddlewares = never,
|
||||
> extends BaseContext {
|
||||
message!: If<InferWithPrefix, MessageStructure | undefined, undefined>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user