Remove deprecated registerCommandoCommand()

(cherry picked from commit c705127007f0e2f6c501a9ae7f84cd3e824a919d)
This commit is contained in:
Dev 2024-07-12 22:19:57 +01:00
parent bf507a766c
commit 61313dce25

View File

@ -14,15 +14,6 @@ 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): void
{
this.registerChatCommand(chatCommand);
}
public registerChatCommand(chatCommand: IChatCommand): void public registerChatCommand(chatCommand: IChatCommand): void
{ {
if (this.chatCommands.some((cc) => cc.getCommandPrefix() === chatCommand.getCommandPrefix())) if (this.chatCommands.some((cc) => cc.getCommandPrefix() === chatCommand.getCommandPrefix()))