Struct serenity::builder::CreateApplicationCommandPermissions [−][src]
Expand description
A builder for creating an ApplicationCommandPermission
.
Tuple Fields
0: HashMap<&'static str, Value>
Implementations
The CommandId
these permissions belong to.
pub fn create_permissions<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissionData) -> &mut CreateApplicationCommandPermissionData,
pub fn create_permissions<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissionData) -> &mut CreateApplicationCommandPermissionData,
Creates permissions for the application command.
pub fn add_permissions(
&mut self,
permission: CreateApplicationCommandPermissionData
) -> &mut Self
pub fn add_permissions(
&mut self,
permission: CreateApplicationCommandPermissionData
) -> &mut Self
Adds permission for the application command.
pub fn set_permissions(
&mut self,
permissions: Vec<CreateApplicationCommandPermissionData>
) -> &mut Self
pub fn set_permissions(
&mut self,
permissions: Vec<CreateApplicationCommandPermissionData>
) -> &mut Self
Sets permissions for the application command.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl Send for CreateApplicationCommandPermissions
impl Sync for CreateApplicationCommandPermissions
impl Unpin for CreateApplicationCommandPermissions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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