Struct serenity::builder::CreateBotAuthParameters [−][src]
pub struct CreateBotAuthParameters { /* fields omitted */ }
Expand description
A builder for constructing an invite link with custom OAuth2 scopes.
Implementations
Specify the client Id of your application.
Automatically fetch and set the client Id of your application by inquiring Discord’s API.
Errors
Returns an
HttpError::UnsuccessfulRequest(Unauthorized)
If the user is not authorized for this endpoint.
Specify the scopes for your application.
Note: This needs to include the Bot
scope.
Specify the permissions your application requires.
Specify the Id of the guild to prefill the dropdown picker for the user.
Specify whether the user cannot change the guild in the dropdown picker.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateBotAuthParameters
impl Send for CreateBotAuthParameters
impl Sync for CreateBotAuthParameters
impl Unpin for CreateBotAuthParameters
impl UnwindSafe for CreateBotAuthParameters
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