Struct serenity::builder::CreateApplicationCommandPermissionData [−][src]
Expand description
A builder for creating an ApplicationCommandPermissionData
.
All fields are required.
Tuple Fields
0: HashMap<&'static str, Value>
Implementations
Sets the ApplicationCommandPermissionType
for the ApplicationCommandPermissionData
.
Sets the CommandPermissionId for the ApplicationCommandPermissionData
.
Sets the permission for the ApplicationCommandPermissionData
.
Note: Setting it to false
will only grey the application command in the
list, it will not fully hide it to the user.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
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