Package de.jcm.discordgamesdk
Class ApplicationManager
java.lang.Object
de.jcm.discordgamesdk.ApplicationManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
A Discord application.static final record
Combined data consisting of aApplicationManager.DiscordOAuth2Token
, anApplicationManager.Application
, and aDiscordUser
static final record
A Discord OAuth2 token. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Requests authorization from the user (if not obtained already) and returns the OAuth2 token and some additional information about user and application in a callback.void
Requests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.
-
Method Details
-
getOAuth2Token
Requests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.- Parameters:
callback
- Callback to process the returnedResult
andApplicationManager.DiscordOAuth2Token
.
-
authenticate
Requests authorization from the user (if not obtained already) and returns the OAuth2 token and some additional information about user and application in a callback.- Parameters:
callback
- Callback to process the returnedResult
andApplicationManager.AuthenticationData
.
-