implement room ban

This commit is contained in:
Devin Zuczek
2026-08-04 15:41:49 -04:00
parent dbc6d15ef5
commit 73bb7c4609
6 changed files with 263 additions and 62 deletions
+3 -1
View File
@@ -128,7 +128,9 @@ export const PlayerDto = z.object({
* a non-zero code (e.g. 20 NoSuchRoom) comes with `roomInstance: null`.
*/
export const MatchmakeResponse = z.object({
errorCode: z.int().describe('0 = success; 20 = NoSuchRoom'),
errorCode: z
.int()
.describe('0 = success; 20 = NoSuchRoom; 55 = banned from the room (the one non-opaque code)'),
roomInstance: RoomInstanceDto.nullable(),
})