mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
29 lines
1 KiB
TypeScript
29 lines
1 KiB
TypeScript
import { ModeratorCommands } from 'websocket';
|
|
import { LogFilters } from 'types';
|
|
|
|
export class ModeratorService {
|
|
static banFromServer(minutes: number, userName?: string, address?: string, reason?: string,
|
|
visibleReason?: string, clientid?: string, removeMessages?: number): void {
|
|
ModeratorCommands.banFromServer(minutes, userName, address, reason, visibleReason, clientid, removeMessages);
|
|
}
|
|
|
|
static getBanHistory(userName: string): void {
|
|
ModeratorCommands.getBanHistory(userName);
|
|
}
|
|
|
|
static getWarnHistory(userName: string): void {
|
|
ModeratorCommands.getWarnHistory(userName);
|
|
}
|
|
|
|
static getWarnList(modName: string, userName: string, userClientid: string): void {
|
|
ModeratorCommands.getWarnList(modName, userName, userClientid);
|
|
}
|
|
|
|
static viewLogHistory(filters: LogFilters): void {
|
|
ModeratorCommands.viewLogHistory(filters);
|
|
}
|
|
|
|
static warnUser(userName: string, reason: string, clientid?: string, removeMessage?: boolean): void {
|
|
ModeratorCommands.warnUser(userName, reason, clientid, removeMessage);
|
|
}
|
|
}
|