Permissions
When staff add a bot to a lodge they pick its rights. Yuva stores them on a role made just for that bot (shown with the bot's name in room settings; it does not count toward the lodge's 8 roles). Every check then treats the bot like a member holding that role: the same lodge rights, the same per-room overrides.
Rights a bot can have#
| Right (in the app) | API key | Allows |
|---|---|---|
| Gör | read | See a room and read its messages; get events from it. |
| Yaz | write | Post, react, upload files in a text room (needs read). |
| Konuş | speak | Join a voice room and send audio. |
| Ekran ve kamera paylaş | share | Screen/camera share in voice. Bots can't share; harmless to leave off. |
| Kişileri etiketle | mention | @name mentions in messages. |
| @everyone kullan | mentionAll | @everyone / @here. |
| Mesajları yönet | manageMessages | Delete others' messages and pin messages. Only the lodge owner can grant. |
No other staff power (kick, mute, roles, invites, rooms, bots) can be given to a bot.
GET /lodges/{id} returns each readable room with the bot's effective rights in that room (channel.perms), after overrides. Check those before acting; a refused action answers 403 with the reason, or 404 when the bot can't see the room at all.
Room overrides#
Staff can allow or deny any right for the bot's role in a single room (room settings → permissions), exactly as for people's roles. A deny there wins over the lodge-wide grant: e.g. a bot with read lodge-wide but read denied in #yönetim never sees that room, its messages, or its events.
Who can add a bot and what they can grant#
Adding, changing and removing bots needs the Botları yönet (
manageBots) staff power, or being the owner.Staff can grant only switches they hold themselves, and can't change a switch they don't hold (in either direction).
manageMessagesis a staff power: only the owner grants it, as with roles.These rules apply to later changes too, and every add, change and removal is recorded in the lodge's audit log.
Moderating bots#
Bots are members: staff with the matching powers can kick or ban them, mute them in voice, move them to another voice room, or disconnect them. Removing or banning a bot deletes its managed role and drops it from voice. Losing speak drops it from voice immediately.