From 2f73e109c155587b64576aa3b69aa7f24b73c5cc Mon Sep 17 00:00:00 2001 From: object <110488133+oobjectt@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:09:04 +0100 Subject: [PATCH] Group Forums | Change name variables --- .../outgoing/groupforums/GetForumStatsMessageComposer.ts | 4 ++-- .../outgoing/groupforums/GetForumsListMessageComposer.ts | 4 ++-- .../outgoing/groupforums/GetMessagesMessageComposer.ts | 4 ++-- .../outgoing/groupforums/GetThreadMessageComposer.ts | 4 ++-- .../outgoing/groupforums/GetThreadsMessageComposer.ts | 4 ++-- .../groupforums/ModerateMessageMessageComposer.ts | 4 ++-- .../outgoing/groupforums/ModerateThreadMessageComposer.ts | 4 ++-- .../outgoing/groupforums/PostMessageMessageComposer.ts | 4 ++-- .../groupforums/UpdateForumReadMarkerMessageComposer.ts | 8 ++++---- .../groupforums/UpdateForumSettingsMessageComposer.ts | 4 ++-- .../outgoing/groupforums/UpdateThreadMessageComposer.ts | 4 ++-- .../messages/parser/groupforums/ExtendedForumData.ts | 2 +- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/nitro/communication/messages/outgoing/groupforums/GetForumStatsMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/GetForumStatsMessageComposer.ts index 8d19cdd9..8497b421 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/GetForumStatsMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/GetForumStatsMessageComposer.ts @@ -4,9 +4,9 @@ export class GetForumStatsMessageComposer implements IMessageComposer; - constructor(k: number) + constructor(groupId: number) { - this._data = [k]; + this._data = [groupId]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/GetForumsListMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/GetForumsListMessageComposer.ts index 6d88651c..914ad8e2 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/GetForumsListMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/GetForumsListMessageComposer.ts @@ -4,9 +4,9 @@ export class GetForumsListMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number) + constructor(groupId: number, startIndex: number, pageSize: number) { - this._data = [k, _arg_2, _arg_3]; + this._data = [groupId, startIndex, pageSize]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/GetMessagesMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/GetMessagesMessageComposer.ts index 0a5130aa..097c0ecf 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/GetMessagesMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/GetMessagesMessageComposer.ts @@ -4,9 +4,9 @@ export class GetMessagesMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number) + constructor(groupId: number, threadId: number, startIndex: number, pageSize: number) { - this._data = [k, _arg_2, _arg_3, _arg_4]; + this._data = [groupId, threadId, startIndex, pageSize]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/GetThreadMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/GetThreadMessageComposer.ts index 6136b1c9..dc401254 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/GetThreadMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/GetThreadMessageComposer.ts @@ -4,9 +4,9 @@ export class GetThreadMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number) + constructor(mode: number, forumState: number) { - this._data = [k, _arg_2]; + this._data = [mode, forumState]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/GetThreadsMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/GetThreadsMessageComposer.ts index 632cd58c..0083a708 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/GetThreadsMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/GetThreadsMessageComposer.ts @@ -4,9 +4,9 @@ export class GetThreadsMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number) + constructor(mode: number, startIndex: number, pageSize: number) { - this._data = [k, _arg_2, _arg_3]; + this._data = [mode, startIndex, pageSize]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/ModerateMessageMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/ModerateMessageMessageComposer.ts index 21275bc8..6bfe86ac 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/ModerateMessageMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/ModerateMessageMessageComposer.ts @@ -4,9 +4,9 @@ export class ModerateMessageMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number) + constructor(groupId: number, threadId: number, messageId: number, forumState: number) { - this._data = [k, _arg_2, _arg_3, _arg_4]; + this._data = [groupId, threadId, messageId, forumState]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/ModerateThreadMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/ModerateThreadMessageComposer.ts index 8e982d64..66b3827d 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/ModerateThreadMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/ModerateThreadMessageComposer.ts @@ -4,9 +4,9 @@ export class ModerateThreadMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number) + constructor(groupId: number, threadId: number, forumState: number) { - this._data = [k, _arg_2, _arg_3]; + this._data = [groupId, threadId, forumState]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/PostMessageMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/PostMessageMessageComposer.ts index 88c5514a..768d4d5b 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/PostMessageMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/PostMessageMessageComposer.ts @@ -4,9 +4,9 @@ export class PostMessageMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: string, _arg_4: string) + constructor(groupId: number, threadId: number, subject: string, message: string) { - this._data = [k, _arg_2, _arg_3, _arg_4]; + this._data = [groupId, threadId, subject, message]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/UpdateForumReadMarkerMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/UpdateForumReadMarkerMessageComposer.ts index 438ff4bf..0ba65ab3 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/UpdateForumReadMarkerMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/UpdateForumReadMarkerMessageComposer.ts @@ -9,9 +9,9 @@ export class UpdateForumReadMarkerMessageComposer implements IMessageComposer { - this._data.push(entry.k); - this._data.push(entry._arg_2); - this._data.push(entry._arg_3); + this._data.push(entry.groupId); + this._data.push(entry.lastReadMessageId); + this._data.push(entry.isLastReadMessageId); }); } @@ -28,6 +28,6 @@ export class UpdateForumReadMarkerMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number, _arg_5: number) + constructor(groupId: number, canRead: number, postMessages: number, postThreads: number, modForum: number) { - this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5]; + this._data = [groupId, canRead, postMessages, postThreads, modForum]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/groupforums/UpdateThreadMessageComposer.ts b/src/nitro/communication/messages/outgoing/groupforums/UpdateThreadMessageComposer.ts index b7f59edb..94f0e695 100644 --- a/src/nitro/communication/messages/outgoing/groupforums/UpdateThreadMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/groupforums/UpdateThreadMessageComposer.ts @@ -4,9 +4,9 @@ export class UpdateThreadMessageComposer implements IMessageComposer; - constructor(k: number, _arg_2: number, _arg_3: boolean, _arg_4: boolean) + constructor(groupId: number, threadId: number, isLocked: boolean, isPinned: boolean) { - this._data = [k, _arg_2, _arg_4, _arg_3]; + this._data = [groupId, threadId, isPinned, isLocked]; } public getMessageArray() diff --git a/src/nitro/communication/messages/parser/groupforums/ExtendedForumData.ts b/src/nitro/communication/messages/parser/groupforums/ExtendedForumData.ts index 903d78db..7fc7d546 100644 --- a/src/nitro/communication/messages/parser/groupforums/ExtendedForumData.ts +++ b/src/nitro/communication/messages/parser/groupforums/ExtendedForumData.ts @@ -86,7 +86,7 @@ export class ExtendedForumData extends ForumData return this._canChangeSettings; } - public get isStaf(): boolean + public get isStaff(): boolean { return this._isStaff; }