Struct prelude::Role
zaun_bot::prelude::Role · Struct
pub struct Role { … }Fields
Section titled “Fields”role_id: Id
Section titled “role_id: Id”name: String
Section titled “name: String”color: Option<u32>
Section titled “color: Option<u32>”position: u32
Section titled “position: u32”permissions: Permissions
Section titled “permissions: Permissions”managed_by: Option<Id>
Section titled “managed_by: Option<Id>”Set on a bot’s managed role.
Methods
Section titled “Methods”mention
Section titled “mention”pub fn mention(&self) -> StringThe text that shows a mention of this role: <@&role_id>.
Trait implementations
Section titled “Trait implementations”Clone, Debug