DiscordOAuthEndpoint

public enum DiscordOAuthEndpoint : String

Represents the Discord OAuth endpoint and the different scopes Disocrd has.

  • The base OAuth endpoint.

    Declaration

    Swift

    case baseURL = "https://discordapp.com/api/oauth2/authorize"
  • bot

    The bot scope.

    Declaration

    Swift

    case bot
  • allows /users/@me/connections to return linked Twitch and YouTube accounts.

    Declaration

    Swift

    case connections
  • Enables /users/@me to return an email.

    Declaration

    Swift

    case email
  • Allows /users/@me without email.

    Declaration

    Swift

    case identify
  • Allows /users/@me/guilds to return basic information about all of a user’s guilds.

    Declaration

    Swift

    case guilds
  • Allows /invites/{invite.id} to be used for joining a user’s guild.

    Declaration

    Swift

    case guildsJoin = "guilds.join"
  • Allows your app to join users to a group dm.

    Declaration

    Swift

    case gdmJoin = "gdm.join"
  • For local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates).

    Declaration

    Swift

    case messagesRead = "messages.read"
  • rpc

    For local rpc server access, this allows you to control a user’s local Discord client.

    Declaration

    Swift

    case rpc
  • For local rpc server api access, this allows you to access the API as the local user.

    Declaration

    Swift

    case rpcApi = "rpc.api"
  • For local rpc server api access, this allows you to receive notifications pushed out to the user.

    Declaration

    Swift

    case rpcNotificationsRead = "rpc.notifications.read"
  • This generates a webhook that is returned in the oauth token response for authorization code grants.

    Declaration

    Swift

    case webhookIncoming = "webhook.incoming"