oauth_scopes

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTIVITIES_READ                          OAuthScope = "activities.read"
	ACTIVITIES_WRITE                                    = "activities.write"
	APPLICATIONS_BUILDS_READ                            = "applications.builds.read"
	APPLICATIONS_BUILDS_UPLOAD                          = "applications.builds.upload"
	APPLICATIONS_COMMANDS                               = "applications.commands"
	APPLICATIONS_COMMANDS_UPDATE                        = "applications.commands.update"
	APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE            = "applications.commands.permissions.update"
	APPLICATIONS_ENTITLEMENTS                           = "applications.entitlements"
	APPLICATIONS_ENTITLEMENTS_UPDATE                    = "applications.entitlements.update"
	BOT                                                 = "bot"
	CONNECTIONS                                         = "connections"
	DM_CHANNEL_READ                                     = "dm_channels.read"
	EMAIL                                               = "email"
	GDM_JOIN                                            = "gdm.join"
	GUILDS                                              = "guilds"
	GUILDS_JOIN                                         = "guilds.join"
	IDENFITY                                            = "identify"
	MESSAGES_READ                                       = "messages.read"
	RELATIONSHIPS_READ                                  = "relationships.read"
	ROLE_CONNECTIONS_WRITE                              = "role_connections.write"
	RPC                                                 = "rpc"
	RPC_ACTIVITIES_WRITE                                = "rpc.activities.write"
	RPC_NOTIFICATIONS_READ                              = "rpc.notifications.read"
	RPC_VOICE_READ                                      = "rpc.voice.read"
	RPC_VOICE_WRITE                                     = "rpc.voice.write"
	VOICE_READ                                          = "voice"
	WEBHOOK_INCOMING                                    = "webhook.incoming"
)

Variables

This section is empty.

Functions

func FormatScopesToParamString

func FormatScopesToParamString(scopes []OAuthScope) string

Types

type OAuthScope

type OAuthScope string

func ParseParamStringToScopes

func ParseParamStringToScopes(scopes string) []OAuthScope

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL