Struct command::object::Role
zaun_community_protocol::command::object::Role · Struct
pub struct Role { … }A role. Visible to every member.
Fields
Section titled “Fields”role_id: RoleId
Section titled “role_id: RoleId”Host-assigned id; all-zero for @everyone.
name: String
Section titled “name: String”1–100 scalars.
color: Option<u32>
Section titled “color: Option<u32>”RGB 0x000000–0xFFFFFF, or none.
hoist: bool
Section titled “hoist: bool”Shown separately in member lists.
mentionable: bool
Section titled “mentionable: bool”May be mentioned by anyone.
position: u32
Section titled “position: u32”0 for @everyone; 1..n otherwise, higher = more authority.
permissions: Permissions
Section titled “permissions: Permissions”Granted bits; unknown bits are preserved (permissions the protocol).
managed_by: Option<BotId>
Section titled “managed_by: Option<BotId>”Only on a bot’s managed role.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq