Enum discord_flows::model::Scope
source · pub enum Scope {
Show 27 variants
Bot,
ApplicationsCommands,
ApplicationsCommandsUpdate,
ApplicationsCommandsPermissionsUpdate,
Identify,
Email,
Connections,
Guilds,
GuildsJoin,
GuildsMembersRead,
GdmJoin,
Rpc,
RpcNotificationsRead,
RpcVoiceRead,
RpcVoiceWrite,
RpcActivitiesWrite,
WebhookIncomming,
MessagesRead,
ApplicationsBuildsUpload,
ApplicationsBuildsRead,
ApplicationsStoreUpdate,
ApplicationsEntitlements,
ActivitiesRead,
ActivitiesWrite,
RelactionshipsRead,
DmChannelsRead,
Voice,
}
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.
ApplicationsCommandsPermissionsUpdate
Allows your app to update permissions for its commands in a guild a user has permissions to.
Identify
Allows /users/@me
without Self::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.
GuildsMembersRead
Allows /users/@me/guilds/{guild.id}/member
to return a user’s member information in 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.
DmChannelsRead
Allows your app to see information about the user’s DMs and group DMs - requires Discord approval.
Voice
Allows your app to connect to voice on user’s behalf and see all the voice members - requires Discord approval.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Scope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Scope, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Ord for Scope
impl Ord for Scope
source§impl PartialEq<Scope> for Scope
impl PartialEq<Scope> for Scope
source§impl PartialOrd<Scope> for Scope
impl PartialOrd<Scope> for Scope
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more