Server/project/src/helpers/Dialogue/Commando/IChatCommand.ts

16 lines
590 B
TypeScript
Raw Normal View History

import { ISendMessageRequest } from "@spt-aki/models/eft/dialog/ISendMessageRequest";
import { IUserDialogInfo } from "@spt-aki/models/eft/profile/IAkiProfile";
/**
* @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
{
getCommandPrefix(): string
getCommandHelp(command: string): string
getCommands(): Set<string>
handle(command: string, commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string
}