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

Manager

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.

Admin

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.

Event

Lets one organise events within the server using the bot’s toolset.

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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