Removed deprecated ICommandoCommand

This commit is contained in:
Dev 2024-07-12 22:19:04 +01:00
parent 537819dda0
commit 28593d3e9b
2 changed files with 4 additions and 9 deletions

View File

@ -1,4 +1,4 @@
import { IChatCommand, ICommandoCommand } from "@spt/helpers/Dialogue/Commando/IChatCommand";
import { IChatCommand } from "@spt/helpers/Dialogue/Commando/IChatCommand";
import { IDialogueChatBot } from "@spt/helpers/Dialogue/IDialogueChatBot";
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
@ -10,7 +10,7 @@ export abstract class AbstractDialogueChatBot implements IDialogueChatBot
public constructor(
protected logger: ILogger,
protected mailSendService: MailSendService,
protected chatCommands: IChatCommand[] | ICommandoCommand[],
protected chatCommands: IChatCommand[],
)
{}
@ -18,12 +18,12 @@ export abstract class AbstractDialogueChatBot implements IDialogueChatBot
* @deprecated As of v3.7.6. Use registerChatCommand.
*/
// TODO: v3.9.0 - Remove registerCommandoCommand method.
public registerCommandoCommand(chatCommand: IChatCommand | ICommandoCommand): void
public registerCommandoCommand(chatCommand: IChatCommand): void
{
this.registerChatCommand(chatCommand);
}
public registerChatCommand(chatCommand: IChatCommand | ICommandoCommand): void
public registerChatCommand(chatCommand: IChatCommand): void
{
if (this.chatCommands.some((cc) => cc.getCommandPrefix() === chatCommand.getCommandPrefix()))
{

View File

@ -1,11 +1,6 @@
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
/**
* @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