Removed deprecated ICommandoCommand
(cherry picked from commit 28593d3e9b82d89c3ae60b8cbba8c69c4e78f09e)
This commit is contained in:
parent
1298022600
commit
bf507a766c
@ -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 { IDialogueChatBot } from "@spt/helpers/Dialogue/IDialogueChatBot";
|
||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
||||||
@ -10,7 +10,7 @@ export abstract class AbstractDialogueChatBot implements IDialogueChatBot
|
|||||||
public constructor(
|
public constructor(
|
||||||
protected logger: ILogger,
|
protected logger: ILogger,
|
||||||
protected mailSendService: MailSendService,
|
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.
|
* @deprecated As of v3.7.6. Use registerChatCommand.
|
||||||
*/
|
*/
|
||||||
// TODO: v3.9.0 - Remove registerCommandoCommand method.
|
// TODO: v3.9.0 - Remove registerCommandoCommand method.
|
||||||
public registerCommandoCommand(chatCommand: IChatCommand | ICommandoCommand): void
|
public registerCommandoCommand(chatCommand: IChatCommand): void
|
||||||
{
|
{
|
||||||
this.registerChatCommand(chatCommand);
|
this.registerChatCommand(chatCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
public registerChatCommand(chatCommand: IChatCommand | ICommandoCommand): void
|
public registerChatCommand(chatCommand: IChatCommand): void
|
||||||
{
|
{
|
||||||
if (this.chatCommands.some((cc) => cc.getCommandPrefix() === chatCommand.getCommandPrefix()))
|
if (this.chatCommands.some((cc) => cc.getCommandPrefix() === chatCommand.getCommandPrefix()))
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
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
|
export interface IChatCommand
|
||||||
{
|
{
|
||||||
getCommandPrefix(): string
|
getCommandPrefix(): string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user