Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScopeIdentify = "identify" ScopeBot = "bot" ScopeEmail = "email" ScopeGuilds = "guilds" ScopeGuildsJoin = "guilds.join" ScopeConnections = "connections" ScopeGroupDMJoin = "gdm.join" ScopeMessagesRead = "messages.read" ScopeRPC = "rpc" ScopeRPCAPI = "rpc.api" ScopeRPCNotificationsRead = "rpc.notifications.read" ScopeWebhookIncoming = "webhook.Incoming" )
Discord OAuth2 scope.
Variables ¶
Conf stores configuration of OAuth with Discord.
Functions ¶
func Client ¶
Client returns pointer to an http.Client.
func GetSelf ¶
GetSelf returns UserInfo of authenticated user.
func GetToken ¶
GetToken gets a token stored in session in a context.
func RemoveToken ¶
RemoveToken removes a token in session in a context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.