You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆕 Groups Forum
This commit is contained in:
@@ -4,9 +4,9 @@ export class GroupSavePreferencesComposer implements IMessageComposer<Constructo
|
|||||||
{
|
{
|
||||||
private _data: ConstructorParameters<typeof GroupSavePreferencesComposer>;
|
private _data: ConstructorParameters<typeof GroupSavePreferencesComposer>;
|
||||||
|
|
||||||
constructor(groupId: number, state: number, onlyAdminCanDecorate: number)
|
constructor(groupId: number, state: number, onlyAdminCanDecorate: number, forumEnabled: boolean)
|
||||||
{
|
{
|
||||||
this._data = [groupId, state, onlyAdminCanDecorate];
|
this._data = [groupId, state, onlyAdminCanDecorate, forumEnabled];
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMessageArray()
|
public getMessageArray()
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export class GroupSettingsParser implements IMessageParser
|
|||||||
private _badgeParts: Map<number, GroupDataBadgePart>;
|
private _badgeParts: Map<number, GroupDataBadgePart>;
|
||||||
private _badgeCode: string;
|
private _badgeCode: string;
|
||||||
private _membersCount: number;
|
private _membersCount: number;
|
||||||
|
private _hasForum: boolean;
|
||||||
|
|
||||||
public flush(): boolean
|
public flush(): boolean
|
||||||
{
|
{
|
||||||
@@ -30,6 +31,7 @@ export class GroupSettingsParser implements IMessageParser
|
|||||||
this._badgeParts = new Map();
|
this._badgeParts = new Map();
|
||||||
this._badgeCode = null;
|
this._badgeCode = null;
|
||||||
this._membersCount = 0;
|
this._membersCount = 0;
|
||||||
|
this._hasForum = false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -83,6 +85,7 @@ export class GroupSettingsParser implements IMessageParser
|
|||||||
|
|
||||||
this._badgeCode = wrapper.readString();
|
this._badgeCode = wrapper.readString();
|
||||||
this._membersCount = wrapper.readInt();
|
this._membersCount = wrapper.readInt();
|
||||||
|
this._hasForum = wrapper.readBoolean();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -146,4 +149,9 @@ export class GroupSettingsParser implements IMessageParser
|
|||||||
{
|
{
|
||||||
return this._membersCount;
|
return this._membersCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get hasForum(): boolean
|
||||||
|
{
|
||||||
|
return this._hasForum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user