mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 13:33:55 -07:00
more integration tests
This commit is contained in:
parent
4b5f66d497
commit
decebc25c7
192 changed files with 3090 additions and 1657 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { create } from '@bufbuild/protobuf';
|
||||
import { Data } from '@app/types';
|
||||
import { Command_AdjustMod_ext, Command_AdjustModSchema } from '@app/generated';
|
||||
import { WebClient } from '../../WebClient';
|
||||
export function adjustMod(userName: string, shouldBeMod?: boolean, shouldBeJudge?: boolean): void {
|
||||
WebClient.instance.protobuf.sendAdminCommand(
|
||||
Data.Command_AdjustMod_ext,
|
||||
create(Data.Command_AdjustModSchema, { userName, shouldBeMod, shouldBeJudge }),
|
||||
Command_AdjustMod_ext,
|
||||
create(Command_AdjustModSchema, { userName, shouldBeMod, shouldBeJudge }),
|
||||
{
|
||||
onSuccess: () => {
|
||||
WebClient.instance.response.admin.adjustMod(userName, shouldBeMod, shouldBeJudge);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue