Enum serenity::model::oauth2::OAuth2Scope [−][src]
#[non_exhaustive] pub enum OAuth2Scope {}Show 23 variants
Bot, ApplicationsCommands, ApplicationsCommandsUpdate, Identify, Email, Connections, Guilds, GuildsJoin, GdmJoin, Rpc, RpcNotificationsRead, RpcVoiceRead, RpcVoiceWrite, RpcActivitiesWrite, WebhookIncomming, MessagesRead, ApplicationsBuildsUpload, ApplicationsBuildsRead, ApplicationsStoreUpdate, ApplicationsEntitlements, ActivitiesRead, ActivitiesWrite, RelactionshipsRead,
Expand description
The available OAuth2 Scopes.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
For oauth2 bots, this puts the bot in the user’s selected guild by default.
Allows your app to use Slash Commands in a guild.
Allows your app to update its Slash Commands via this bearer token - client credentials grant only.
Allows /users/@me
without Self::Email
.
Enables /users/@me
to return an email
field.
Allows /users/@me/connections
to return linked third-party accounts.
Allows /users/@me/guilds
to return basic information about all of a user’s guilds.
Allows /guilds/{guild.id}/members/{user.id}
to be used for joining users to a guild.
Allows your app to join users to a group dm.
For local rpc server access, this allows you to control a user’s local Discord client - requires Discord approval.
For local rpc server api access, this allows you to receive notifications pushed out to the user - requires Discord approval.
This generates a webhook that is returned in the oauth token response for authorization code grants.
For local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates).
Allows your app to upload/update builds for a user’s applications - requires Discord approval.
Allows your app to read build data for a user’s applications.
Allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user’s applications.
Allows your app to read entitlements for a user’s applications.
Allows your app to fetch data from a user’s “Now Playing/Recently Played” list - requires Discord approval.
allows your app to update a user’s activity - requires Discord approval (Not required for gamesdk activity manager!).
Allows your app to know a user’s friends and implicit relationships - requires Discord approval.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for OAuth2Scope
impl Send for OAuth2Scope
impl Sync for OAuth2Scope
impl Unpin for OAuth2Scope
impl UnwindSafe for OAuth2Scope
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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
type Output = T
type Output = T
Should always be Self