You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
31598b8883
* HousekeepingBanUserComposer (OutgoingHeader 9102): (userId, reason, hours). * HousekeepingActionResultEvent + Parser (IncomingHeader 9201): generic ack carrying (actionKey, ok, actionId, message). Same parser will back mute / kick / give-credits / room-close / etc. callers — adding a new HK action only needs a new outgoing composer plus the right ACTION_KEY constant on the server side. vitest 138/138, `yarn compile:fast` clean.
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
import { IMessageComposer } from '@nitrots/api';
|
|
|
|
export class HousekeepingBanUserComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingBanUserComposer>>
|
|
{
|
|
private _data: ConstructorParameters<typeof HousekeepingBanUserComposer>;
|
|
|
|
constructor(userId: number, reason: string, hours: number)
|
|
{
|
|
this._data = [userId, reason, hours];
|
|
}
|
|
|
|
public getMessageArray()
|
|
{
|
|
return this._data;
|
|
}
|
|
|
|
public dispose(): void
|
|
{
|
|
return;
|
|
}
|
|
}
|