diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index 6dc528ae..5bae44f5 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -322,6 +322,7 @@ import { TradingOpenComposer } from './messages/outgoing/inventory/trading/Tradi import { TradingUnacceptComposer } from './messages/outgoing/inventory/trading/TradingUnacceptComposer'; import { GetPromoArticlesComposer } from './messages/outgoing/landingview/GetPromoArticlesComposer'; import { CommunityGoalVoteMessageComposer } from './messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer'; +import { ModeratorActionMessageComposer } from './messages/outgoing/modtool/ModeratorActionMessageComposer'; import { ModtoolChangeRoomSettingsComposer } from './messages/outgoing/modtool/ModtoolChangeRoomSettingsComposer'; import { ModtoolEventAlertComposer } from './messages/outgoing/modtool/ModtoolEventAlertComposer'; import { ModtoolRequestRoomChatlogComposer } from './messages/outgoing/modtool/ModtoolRequestRoomChatlogComposer'; @@ -329,7 +330,6 @@ import { ModtoolRequestRoomInfoComposer } from './messages/outgoing/modtool/Modt import { ModtoolRequestUserChatlogComposer } from './messages/outgoing/modtool/ModtoolRequestUserChatlogComposer'; import { ModtoolRequestUserInfoComposer } from './messages/outgoing/modtool/ModtoolRequestUserInfoComposer'; import { ModtoolRequestUserRoomsComposer } from './messages/outgoing/modtool/ModtoolRequestUserRoomsComposer'; -import { ModtoolRoomAlertComposer } from './messages/outgoing/modtool/ModtoolRoomAlertComposer'; import { ModtoolSanctionAlertComposer } from './messages/outgoing/modtool/ModtoolSanctionAlertComposer'; import { ModtoolSanctionBanComposer } from './messages/outgoing/modtool/ModtoolSanctionBanComposer'; import { ModtoolSanctionKickComposer } from './messages/outgoing/modtool/ModtoolSanctionKickComposer'; @@ -1231,7 +1231,7 @@ export class NitroMessages implements IMessageConfiguration this._composers.set(OutgoingHeader.MODTOOL_ALERTEVENT, ModtoolEventAlertComposer); this._composers.set(OutgoingHeader.MODTOOL_SANCTION_MUTE, ModtoolSanctionMuteComposer); this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_ROOMS, ModtoolRequestUserRoomsComposer); - this._composers.set(OutgoingHeader.MODTOOL_ROOM_ALERT, ModtoolRoomAlertComposer); + this._composers.set(OutgoingHeader.MODTOOL_ROOM_ALERT, ModeratorActionMessageComposer); // SETTINGS this._composers.set(OutgoingHeader.USER_SETTINGS_CAMERA, UserSettingsCameraFollowComposer); diff --git a/src/nitro/communication/messages/outgoing/modtool/ModtoolRoomAlertComposer.ts b/src/nitro/communication/messages/outgoing/modtool/ModeratorActionMessageComposer.ts similarity index 60% rename from src/nitro/communication/messages/outgoing/modtool/ModtoolRoomAlertComposer.ts rename to src/nitro/communication/messages/outgoing/modtool/ModeratorActionMessageComposer.ts index 0870af32..2a6e3c97 100644 --- a/src/nitro/communication/messages/outgoing/modtool/ModtoolRoomAlertComposer.ts +++ b/src/nitro/communication/messages/outgoing/modtool/ModeratorActionMessageComposer.ts @@ -1,7 +1,12 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; -export class ModtoolRoomAlertComposer implements IMessageComposer +export class ModeratorActionMessageComposer implements IMessageComposer { + public static readonly ACTION_ALERT = 0; + public static readonly ACTION_KICK = 1; + public static readonly ACTION_MESSAGE = 3; + public static readonly ACTION_MESSAGE_AND_SOFT_KICK = 4; + private _data: any[] = []; constructor(k: number, arg2: string, arg3: string) diff --git a/src/nitro/communication/messages/outgoing/modtool/index.ts b/src/nitro/communication/messages/outgoing/modtool/index.ts index 25263a66..5537674e 100644 --- a/src/nitro/communication/messages/outgoing/modtool/index.ts +++ b/src/nitro/communication/messages/outgoing/modtool/index.ts @@ -1,3 +1,4 @@ +export * from './ModeratorActionMessageComposer'; export * from './ModtoolChangeRoomSettingsComposer'; export * from './ModtoolEventAlertComposer'; export * from './ModtoolRequestRoomChatlogComposer'; @@ -5,7 +6,6 @@ export * from './ModtoolRequestRoomInfoComposer'; export * from './ModtoolRequestUserChatlogComposer'; export * from './ModtoolRequestUserInfoComposer'; export * from './ModtoolRequestUserRoomsComposer'; -export * from './ModtoolRoomAlertComposer'; export * from './ModtoolSanctionAlertComposer'; export * from './ModtoolSanctionBanComposer'; export * from './ModtoolSanctionKickComposer';