feat(communication): housekeeping mute-user + kick-user composers

OutgoingHeader 9104 HousekeepingMuteUserComposer — (userId, reason,
minutes). 9105 HousekeepingKickUserComposer — (userId, reason). Both
ride the existing HousekeepingActionResultEvent for the ack, so no
new parser is needed.

vitest 138/138, `yarn compile:fast` clean.
This commit is contained in:
simoleo89
2026-05-24 11:00:05 +02:00
committed by simoleo89
parent c9d8f32e62
commit 370b1fc100
5 changed files with 49 additions and 1 deletions
@@ -0,0 +1,21 @@
import { IMessageComposer } from '@nitrots/api';
export class HousekeepingKickUserComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingKickUserComposer>>
{
private _data: ConstructorParameters<typeof HousekeepingKickUserComposer>;
constructor(userId: number, reason: string)
{
this._data = [userId, reason];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}