feat: switch world route impl

This commit is contained in:
Calum H. (IMB11)
2026-06-26 17:09:22 +01:00
parent 8381482cbb
commit 0a451d9f9a
4 changed files with 142 additions and 12 deletions
@@ -66,4 +66,16 @@ export class ArchonServersV1Module extends AbstractModule {
method: 'POST',
})
}
/**
* Switch the server to a world
* POST /v1/servers/:id/worlds/:wid/active
*/
public async switchWorld(serverId: string, worldId: string): Promise<void> {
await this.client.request(`/servers/${serverId}/worlds/${worldId}/active`, {
api: 'archon',
version: 1,
method: 'POST',
})
}
}