Enum db_adapter::guild::Privilege [−][src]
pub enum Privilege {
Manager,
Admin,
Event,
}
Expand description
Bot’s permission system
Botanist handles permissions through a different system than Discord. This way server admins can fine tune permissions so that users who should not have access to some discord permissions can still fully use the bot, or the other way around.
Variants
The manager privilege provides low-level administration powers such as message deletion (clear
command).
Generally it is good for moderators who are tasked with maintaining order.
The admin privilege provides lets one use all but a few features of the bot.
This excludes those that come with Privilege::Event
or those reserved to the bot owner and server owner.
Lets one organise events within the server using the bot’s toolset.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Privilege
impl UnwindSafe for Privilege
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more