make AdminOpcode enum numbers

Thanks to previous work they will be converted to a string anyways, so they need not be strings here.
This commit is contained in:
modeco80 2024-03-12 02:53:53 -04:00
parent cfed6dbfa3
commit acd2b949b8

View File

@ -32,21 +32,21 @@ export enum Rank {
// All used admin opcodes as a enum // All used admin opcodes as a enum
export enum AdminOpcode { export enum AdminOpcode {
Login = '2', Login = 2,
MonitorCommand = '5', MonitorCommand = 5,
Restore = '8', Restore = 8,
Reboot = '10', Reboot = 10,
BanUser = '12', BanUser = 12,
ForceVote = '13', ForceVote = 13,
MuteUser = '14', MuteUser = 14,
KickUser = '15', KickUser = 15,
EndTurn = '16', EndTurn = 16,
ClearTurns = '17', ClearTurns = 17,
RenameUser = '18', RenameUser = 18,
GetIP = '19', GetIP = 19,
BypassTurn = '20', BypassTurn = 20,
ChatXSS = '21', ChatXSS = 21,
ToggleTurns = '22', ToggleTurns = 22,
IndefiniteTurn = '23', IndefiniteTurn = 23,
HideScreen = '24' HideScreen = 24
} }