#[non_exhaustive]pub enum Scope {
Show 28 variants
Bot,
ApplicationsCommands,
ApplicationsCommandsUpdate,
ApplicationsCommandsPermissionsUpdate,
Identify,
Email,
Connections,
Guilds,
GuildsJoin,
GuildsMembersRead,
GdmJoin,
Rpc,
RpcNotificationsRead,
RpcVoiceRead,
RpcVoiceWrite,
RpcActivitiesWrite,
WebhookIncoming,
MessagesRead,
ApplicationsBuildsUpload,
ApplicationsBuildsRead,
ApplicationsStoreUpdate,
ApplicationsEntitlements,
ActivitiesRead,
ActivitiesWrite,
RelationshipsRead,
DmChannelsRead,
Voice,
RoleConnectionsWrite,
}
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
WebhookIncoming
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!).
RelationshipsRead
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.
RoleConnectionsWrite
Allows your app to update a user’s connection and metadata for the app.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Ord for Scope
impl Ord for Scope
Source§impl PartialOrd for Scope
impl PartialOrd for Scope
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.