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
370b1fc100
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.
22 lines
488 B
TypeScript
22 lines
488 B
TypeScript
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;
|
|
}
|
|
}
|