From 80cb55ea2c28c65f0c3394b4b1f35c3d2f0243e5 Mon Sep 17 00:00:00 2001 From: dank074 Date: Wed, 20 Oct 2021 23:02:20 -0500 Subject: [PATCH] missed a message --- src/nitro/communication/NitroMessages.ts | 3 ++- .../messages/incoming/IncomingHeader.ts | 1 + .../moderation/ModeratorToolPreferencesEvent.ts | 16 ++++++++++++++++ .../messages/incoming/moderation/index.ts | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/nitro/communication/messages/incoming/moderation/ModeratorToolPreferencesEvent.ts diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index 52a759af..0a3f2956 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -90,7 +90,7 @@ import { MarketplaceItemStatsEvent } from './messages/incoming/marketplace/Marke import { MarketplaceMakeOfferResult } from './messages/incoming/marketplace/MarketplaceMakeOfferResult'; import { MarketPlaceOffersEvent } from './messages/incoming/marketplace/MarketplaceOffersEvent'; import { MarketplaceOwnOffersEvent } from './messages/incoming/marketplace/MarketplaceOwnOffersEvent'; -import { CfhChatlogEvent, IssueDeletedMessageEvent, IssueInfoMessageEvent, IssuePickFailedMessageEvent, ModeratorActionResultMessageEvent, ModeratorInitMessageEvent, ModeratorMessageEvent, ModeratorRoomInfoEvent, ModeratorUserInfoEvent, RoomChatlogEvent, RoomVisitsEvent, UserBannedMessageEvent, UserChatlogEvent } from './messages/incoming/moderation'; +import { CfhChatlogEvent, IssueDeletedMessageEvent, IssueInfoMessageEvent, IssuePickFailedMessageEvent, ModeratorActionResultMessageEvent, ModeratorInitMessageEvent, ModeratorMessageEvent, ModeratorRoomInfoEvent, ModeratorToolPreferencesEvent, ModeratorUserInfoEvent, RoomChatlogEvent, RoomVisitsEvent, UserBannedMessageEvent, UserChatlogEvent } from './messages/incoming/moderation'; import { ModeratorCautionEvent } from './messages/incoming/moderation/ModeratorCautionEvent'; import { NavigatorCategoriesEvent } from './messages/incoming/navigator/NavigatorCategoriesEvent'; import { NavigatorCollapsedEvent } from './messages/incoming/navigator/NavigatorCollapsedEvent'; @@ -669,6 +669,7 @@ export class NitroMessages implements IMessageConfiguration this._events.set(IncomingHeader.ISSUE_PICK_FAILED, IssuePickFailedMessageEvent); this._events.set(IncomingHeader.MODERATOR_ACTION_RESULT, ModeratorActionResultMessageEvent); this._events.set(IncomingHeader.MODERATOR_MESSAGE, ModeratorMessageEvent); + this._events.set(IncomingHeader.MODERATOR_TOOL_PREFERENCES, ModeratorToolPreferencesEvent); // MYSTERY BOX this._events.set(IncomingHeader.MYSTERY_BOX_KEYS, MysteryBoxKeysEvent); diff --git a/src/nitro/communication/messages/incoming/IncomingHeader.ts b/src/nitro/communication/messages/incoming/IncomingHeader.ts index 1e2f36ea..713f9102 100644 --- a/src/nitro/communication/messages/incoming/IncomingHeader.ts +++ b/src/nitro/communication/messages/incoming/IncomingHeader.ts @@ -221,6 +221,7 @@ export class IncomingHeader public static ISSUE_INFO = 3609; public static ISSUE_PICK_FAILED = 3150; public static CFH_CHATLOG = 607; + public static MODERATOR_TOOL_PREFERENCES = 1576; public static LOVELOCK_FURNI_START = 3753; public static LOVELOCK_FURNI_FRIEND_COMFIRMED = 382; public static LOVELOCK_FURNI_FINISHED = 770; diff --git a/src/nitro/communication/messages/incoming/moderation/ModeratorToolPreferencesEvent.ts b/src/nitro/communication/messages/incoming/moderation/ModeratorToolPreferencesEvent.ts new file mode 100644 index 00000000..3dd6f913 --- /dev/null +++ b/src/nitro/communication/messages/incoming/moderation/ModeratorToolPreferencesEvent.ts @@ -0,0 +1,16 @@ +import { ModeratorToolPreferencesMessageParser } from '../..'; +import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; +import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; + +export class ModeratorToolPreferencesEvent extends MessageEvent implements IMessageEvent +{ + constructor(callBack: Function) + { + super(callBack, ModeratorToolPreferencesMessageParser); + } + + public getParser(): ModeratorToolPreferencesMessageParser + { + return this.parser as ModeratorToolPreferencesMessageParser; + } +} diff --git a/src/nitro/communication/messages/incoming/moderation/index.ts b/src/nitro/communication/messages/incoming/moderation/index.ts index 22c4cfea..34640aef 100644 --- a/src/nitro/communication/messages/incoming/moderation/index.ts +++ b/src/nitro/communication/messages/incoming/moderation/index.ts @@ -11,6 +11,7 @@ export * from './ModeratorCautionEvent'; export * from './ModeratorInitMessageEvent'; export * from './ModeratorMessageEvent'; export * from './ModeratorRoomInfoEvent'; +export * from './ModeratorToolPreferencesEvent'; export * from './ModeratorUserInfoData'; export * from './ModeratorUserInfoEvent'; export * from './ModRoomData';