admin_panel_settings

Management

Admin

Moderation routes exist on the Rust server. Add typed SDK services only for operations your server authorization fully enforces.

Current Rust moderation routes

text
POST /rooms/:room_id/mute
POST /rooms/:room_id/unmute
POST /rooms/:room_id/ban
POST /rooms/:room_id/unban
POST /admin/users/block
POST /admin/users/unblock

Using a typed service

If your installed package exports RoomAdminService:

dart
await sdk.roomAdmin.mute(
  roomId: roomId,
  userId: targetRustUserId,
);

await sdk.roomAdmin.ban(
  roomId: roomId,
  userId: targetRustUserId,
  reason: 'Repeated abuse',
);

Realtime results

Listen to sdk.roomEvents for moderation events and update the room UI or disconnect the affected user.

The stable public facade shown in the current SDK source may not initialize roomAdmin yet. Do not publish examples for a service until it is created, exported, analyzed, and tested.