mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-03 05:54:27 -05:00
11 lines
427 B
TypeScript
11 lines
427 B
TypeScript
import { BackendService } from '../../services/BackendService';
|
|
import { ModeratorPersistence } from '../../persistence';
|
|
|
|
export function warnUser(userName: string, reason: string, clientid?: string, removeMessages?: number): void {
|
|
BackendService.sendModeratorCommand('Command_WarnUser', { userName, reason, clientid, removeMessages }, {
|
|
onSuccess: () => {
|
|
ModeratorPersistence.warnUser(userName);
|
|
},
|
|
});
|
|
}
|