From 8298c2c6962fbf7d78b8aab763774346acea3859 Mon Sep 17 00:00:00 2001 From: dank074 Date: Tue, 19 Oct 2021 18:57:31 -0500 Subject: [PATCH] fix more packet names --- src/nitro/communication/NitroMessages.ts | 4 ++-- ...RoomSettingsComposer.ts => ModerateRoomMessageComposer.ts} | 4 ++-- src/nitro/communication/messages/outgoing/modtool/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/nitro/communication/messages/outgoing/modtool/{ModtoolChangeRoomSettingsComposer.ts => ModerateRoomMessageComposer.ts} (63%) diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index 5bae44f5..2edc1d38 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -322,8 +322,8 @@ 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 { ModerateRoomMessageComposer } from './messages/outgoing/modtool/ModerateRoomMessageComposer'; 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'; import { ModtoolRequestRoomInfoComposer } from './messages/outgoing/modtool/ModtoolRequestRoomInfoComposer'; @@ -1220,7 +1220,7 @@ export class NitroMessages implements IMessageConfiguration // MODTOOL this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_INFO, ModtoolRequestRoomInfoComposer); - this._composers.set(OutgoingHeader.MODTOOL_CHANGE_ROOM_SETTINGS, ModtoolChangeRoomSettingsComposer); + this._composers.set(OutgoingHeader.MODTOOL_CHANGE_ROOM_SETTINGS, ModerateRoomMessageComposer); this._composers.set(OutgoingHeader.MODTOOL_REQUEST_USER_CHATLOG, ModtoolRequestUserChatlogComposer); this._composers.set(OutgoingHeader.MODTOOL_REQUEST_ROOM_CHATLOG, ModtoolRequestRoomChatlogComposer); this._composers.set(OutgoingHeader.MOD_TOOL_USER_INFO, ModtoolRequestUserInfoComposer); diff --git a/src/nitro/communication/messages/outgoing/modtool/ModtoolChangeRoomSettingsComposer.ts b/src/nitro/communication/messages/outgoing/modtool/ModerateRoomMessageComposer.ts similarity index 63% rename from src/nitro/communication/messages/outgoing/modtool/ModtoolChangeRoomSettingsComposer.ts rename to src/nitro/communication/messages/outgoing/modtool/ModerateRoomMessageComposer.ts index 168ff4eb..9e6b31c9 100644 --- a/src/nitro/communication/messages/outgoing/modtool/ModtoolChangeRoomSettingsComposer.ts +++ b/src/nitro/communication/messages/outgoing/modtool/ModerateRoomMessageComposer.ts @@ -1,8 +1,8 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; -export class ModtoolChangeRoomSettingsComposer implements IMessageComposer> +export class ModerateRoomMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; constructor(roomId: number, lockDoor: number, changeTitle: number, kickUsers: number) { diff --git a/src/nitro/communication/messages/outgoing/modtool/index.ts b/src/nitro/communication/messages/outgoing/modtool/index.ts index 5537674e..904066bd 100644 --- a/src/nitro/communication/messages/outgoing/modtool/index.ts +++ b/src/nitro/communication/messages/outgoing/modtool/index.ts @@ -1,5 +1,5 @@ +export * from './ModerateRoomMessageComposer'; export * from './ModeratorActionMessageComposer'; -export * from './ModtoolChangeRoomSettingsComposer'; export * from './ModtoolEventAlertComposer'; export * from './ModtoolRequestRoomChatlogComposer'; export * from './ModtoolRequestRoomInfoComposer';