Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ServerInfo_RoomChannel Struct Reference

Public Types

enum  AccessLevel {
  Public = 0 , Registered = 1 , Judge = 2 , Moderator = 3 ,
  Admin = 4 , Developer = 5
}

Public Attributes

optional string id = 1
 stable ASCII id, e.g. "deck-discussion"
optional string display_name = 2
 server-provided, localizable only server-side
optional AccessLevel access_level = 3 [default = Public]
 minimum privilege level required to read the channel
optional AccessLevel write_access_level = 4
optional string banner_message = 5

Member Enumeration Documentation

◆ AccessLevel

Enumerator
Public 

Required user flag set, evaluated per level (not as a ladder): Registered needs IsRegistered; Judge needs IsJudge or IsModerator; Moderator needs IsModerator (admins hold it alongside IsAdmin); Admin needs IsAdmin; Developer needs IsDeveloper or IsAdmin.

Registered 
Judge 
Moderator 
Admin 
Developer 

Member Data Documentation

◆ access_level

optional AccessLevel ServerInfo_RoomChannel::access_level = 3 [default = Public]

minimum privilege level required to read the channel

◆ banner_message

optional string ServerInfo_RoomChannel::banner_message = 5

Static banner shown at the top of the channel, analogous to the room join message on Main. Empty = none.

◆ display_name

optional string ServerInfo_RoomChannel::display_name = 2

server-provided, localizable only server-side

◆ id

optional string ServerInfo_RoomChannel::id = 1

stable ASCII id, e.g. "deck-discussion"

◆ write_access_level

optional AccessLevel ServerInfo_RoomChannel::write_access_level = 4

Minimum privilege level required to write to the channel. When unset, writing requires the same level as reading. This allows read-mostly channels such as a developer news feed: readable by everyone, writable only by developers.


The documentation for this struct was generated from the following file: