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
Bot
For oauth2 bots, this puts the bot in the user’s selected guild by default.
ApplicationsCommands
Allows your app to use Slash Commands in a guild.
ApplicationsCommandsUpdate
Allows your app to update its Slash Commands via this bearer token - client credentials grant only.
Identify
Allows /users/@me
without Self::Email
.
Email
Enables /users/@me
to return an email
field.
Connections
Allows /users/@me/connections
to return linked third-party accounts.
Guilds
Allows /users/@me/guilds
to return basic information about all of a user’s guilds.
GuildsJoin
Allows /guilds/{guild.id}/members/{user.id}
to be used for joining users to a guild.
GdmJoin
Allows your app to join users to a group dm.
Rpc
For local rpc server access, this allows you to control a user’s local Discord client - requires Discord approval.
RpcNotificationsRead
For local rpc server api access, this allows you to receive notifications pushed out to the user - requires Discord approval.
RpcVoiceRead
RpcVoiceWrite
RpcActivitiesWrite
WebhookIncomming
This generates a webhook that is returned in the oauth token response for authorization code grants.
MessagesRead
For local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates).
ApplicationsBuildsUpload
Allows your app to upload/update builds for a user’s applications - requires Discord approval.
ApplicationsBuildsRead
Allows your app to read build data for a user’s applications.
ApplicationsStoreUpdate
Allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user’s applications.
ApplicationsEntitlements
Allows your app to read entitlements for a user’s applications.
ActivitiesRead
Allows your app to fetch data from a user’s “Now Playing/Recently Played” list - requires Discord approval.
ActivitiesWrite
allows your app to update a user’s activity - requires Discord approval (Not required for gamesdk activity manager!).
RelactionshipsRead
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
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