2023-12-25 09:38:42 +01:00
|
|
|
import { ISendMessageRequest } from "@spt-aki/models/eft/dialog/ISendMessageRequest";
|
|
|
|
import { IUserDialogInfo } from "@spt-aki/models/eft/profile/IAkiProfile";
|
2023-12-24 20:54:27 +01:00
|
|
|
|
2024-04-10 11:48:28 +02:00
|
|
|
/**
|
|
|
|
* @deprecated As of v3.7.6. Use IChatCommand. Will be removed in v3.9.0.
|
|
|
|
*/
|
|
|
|
// TODO: v3.9.0 - Remove ICommandoCommand.
|
|
|
|
export type ICommandoCommand = IChatCommand;
|
|
|
|
export interface IChatCommand
|
2023-12-24 20:54:27 +01:00
|
|
|
{
|
|
|
|
getCommandPrefix(): string;
|
|
|
|
getCommandHelp(command: string): string;
|
|
|
|
getCommands(): Set<string>;
|
2023-12-25 09:38:42 +01:00
|
|
|
handle(command: string, commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
2023-12-24 20:54:27 +01:00
|
|
|
}
|