Index
All Classes and Interfaces|All Packages|Serialized Form
A
- applicationInfo() - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Returns the
ApplicationInfo
set. - applicationInfo(ApplicationInfo) - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Sets a new application info.
- ApplicationInfo - Class in com.mrivanplays.jdoa2
-
Represents information about the application, driven by this discord api wrapper.
- ApplicationInfo(ApplicationInfo.Builder) - Constructor for class com.mrivanplays.jdoa2.ApplicationInfo
- ApplicationInfo(String, String, String, String) - Constructor for class com.mrivanplays.jdoa2.ApplicationInfo
- ApplicationInfo.Builder - Class in com.mrivanplays.jdoa2
-
Represents a builder, for easily creating
ApplicationInfo
instance. - authCode() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Authentication code of the user you want to get information of.
- authCode(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Sets the authentication code of the user you want to get information of.
- AuthenticationException - Exception in com.mrivanplays.jdoa2
-
Represents an exception, thrown when there was error while trying to authenticate with discord api.
- AuthenticationException(String) - Constructor for exception com.mrivanplays.jdoa2.AuthenticationException
- AuthenticationException(Throwable) - Constructor for exception com.mrivanplays.jdoa2.AuthenticationException
- AUTHOR - Static variable in class com.mrivanplays.jdoa2.JDOA2Utils
-
The lead developer of the library's name.
B
- build() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Builds the specified parameters of the builder into an
ApplicationInfo
- build() - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Builds this builder's parameters into a
JDOA2
instance. - build() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- builder() - Static method in class com.mrivanplays.jdoa2.ApplicationInfo
-
Creates a new
ApplicationInfo.Builder
- builder() - Static method in interface com.mrivanplays.jdoa2.JDOA2
-
Creates a new
JDOA2Builder
- builder() - Static method in interface com.mrivanplays.jdoa2.SessionManager
-
Creates a new
SessionManagerBuilder
- builder(ApplicationInfo) - Static method in interface com.mrivanplays.jdoa2.JDOA2
-
Creates a new
JDOA2Builder
- Builder() - Constructor for class com.mrivanplays.jdoa2.ApplicationInfo.Builder
C
- clientId() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Application's client id.
- clientId() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- clientId(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Sets the application's client id.
- clientId(String) - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- clientSecret() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Application's client secret.
- clientSecret() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- clientSecret(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Sets the application's client secret.
- clientSecret(String) - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- com.mrivanplays.jdoa2 - package com.mrivanplays.jdoa2
- com.mrivanplays.jdoa2.internal - package com.mrivanplays.jdoa2.internal
- contains(String, String[]) - Static method in class com.mrivanplays.jdoa2.JDOA2Utils
- CurrentUser - Class in com.mrivanplays.jdoa2
-
Represents the user this application is running for.
- CurrentUser(String, String, String, String, boolean, boolean, String, String, int) - Constructor for class com.mrivanplays.jdoa2.CurrentUser
D
- DEFAULT_AVATARS - Static variable in class com.mrivanplays.jdoa2.JDOA2Utils
-
Default avatars' icon hashes.
- DiscordToken - Class in com.mrivanplays.jdoa2
-
Represents a token, retrieved from discord API.
- DiscordToken(String, long, String, String, String) - Constructor for class com.mrivanplays.jdoa2.DiscordToken
- doTokenExchange() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- doTokenExchange() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Starts a OAuth2 token exchange process.
- doTokenExchangeUsingRefreshToken() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- doTokenExchangeUsingRefreshToken() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Refreshes an existing OAuth2 token, or if none found, calls
JDOA2.doTokenExchange()
.
E
- equals(Object) - Method in class com.mrivanplays.jdoa2.internal.ErrorResponse
- ErrorResponse - Class in com.mrivanplays.jdoa2.internal
- ErrorResponse(String, String) - Constructor for class com.mrivanplays.jdoa2.internal.ErrorResponse
G
- getAccessToken() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Returns the access token.
- getApplicationInfo() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getApplicationInfo() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns the
ApplicationInfo
- getAsMention() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Gets the user as a discord formatted mention.
- getAuthCode() - Method in class com.mrivanplays.jdoa2.ApplicationInfo
-
Returns the auth code.
- getAvatar() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the user's avatar icon hash
- getClientId() - Method in class com.mrivanplays.jdoa2.ApplicationInfo
-
Returns the client id of your application, found in the discord application configuration.
- getClientSecret() - Method in class com.mrivanplays.jdoa2.ApplicationInfo
-
Returns the client secret of your application, found in the discord application configuration.
- getCurrentToken() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getCurrentToken() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns the token this JDOA2 instance has last cached.
- getCurrentUser() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getCurrentUser() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Retrieves
CurrentUser
information, returningPendingRequest
. - getCurrentUserGuilds() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getCurrentUserGuilds() - Method in interface com.mrivanplays.jdoa2.JDOA2
- getDefaultAvatar() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the user's default avatar icon hash.
- getDiscriminator() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the discriminator of the user.
- getEffectiveAvatar() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the user's effective avatar icon hash, effective meaning currently applied.
- getEmail() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the email of the user, if so we have the scope provided.
- getError() - Method in class com.mrivanplays.jdoa2.internal.ErrorResponse
- getExpiresIn() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Returns whenever the access token expires.
- getFlags() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns bitwise calculated flags.
- getGuildIconUrl(Guild) - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Deprecated.
- getHttpClient() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getHttpClient() - Method in class com.mrivanplays.jdoa2.internal.SessionManagerImpl
- getHttpClient() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns the
OkHttpClient
, used to handle requests. - getHttpClient() - Method in interface com.mrivanplays.jdoa2.SessionManager
-
Returns the
ObjectMapper
, used to read json from discord api responses. - getIcon() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns the guild's icon hash
- getIconUrl() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns the guild's icon url, if the guild has icon.
- getId() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the snowflake, this object is holding.
- getId() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns the snowflake, this object is holding.
- getId() - Method in interface com.mrivanplays.jdoa2.ISnowflake
-
Returns the snowflake, this object is holding.
- getIdLong() - Method in interface com.mrivanplays.jdoa2.ISnowflake
-
Returns the snowflake object as a
long
- getJsonMapper() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- getJsonMapper() - Method in class com.mrivanplays.jdoa2.internal.SessionManagerImpl
- getJsonMapper() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns the
ObjectMapper
, used to read json from discord api responses. - getJsonMapper() - Method in interface com.mrivanplays.jdoa2.SessionManager
-
Returns the
ObjectMapper
, used to read json from discord api responses. - getLocale() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the locale, set on the discord client by the user.
- getMessage() - Method in class com.mrivanplays.jdoa2.internal.ErrorResponse
- getMessage() - Method in class com.mrivanplays.jdoa2.internal.RateLimitedResponse
- getName() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns the guild's name.
- getOrCreateSession(String) - Method in interface com.mrivanplays.jdoa2.SessionManager
-
Returns a
JDOA2
session, fresh created if didn't exist, retrieved otherwise. - getPermissions() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns total permissions for the
CurrentUser
in this guild. - getRedirectUri() - Method in class com.mrivanplays.jdoa2.ApplicationInfo
-
Returns the application's URL callback.
- getRefreshToken() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Returns the refresh token, used to refresh the access token.
- getRetryAfter() - Method in class com.mrivanplays.jdoa2.internal.RateLimitedResponse
- getScope() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Returns the scopes we're allowed to get information for.
- getSession(String) - Method in class com.mrivanplays.jdoa2.internal.SessionManagerImpl
- getSession(String) - Method in interface com.mrivanplays.jdoa2.SessionManager
- getSessions() - Method in class com.mrivanplays.jdoa2.internal.SessionManagerImpl
- getSessions() - Method in interface com.mrivanplays.jdoa2.SessionManager
- getTokenType() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Returns the type of the discord token.
- getUserAvatarUrl(CurrentUser) - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns the icon url of the
CurrentUser
specified. - getUsername() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns the username of the user.
- GITHUB - Static variable in class com.mrivanplays.jdoa2.JDOA2Utils
-
GitHub URL of the library.
- Guild - Class in com.mrivanplays.jdoa2
-
Represents a guild object, holding information about the
CurrentUser's
state, and also holding very basic information about the guild itself. - Guild(String, String, String, boolean, int) - Constructor for class com.mrivanplays.jdoa2.Guild
H
- hashCode() - Method in class com.mrivanplays.jdoa2.internal.ErrorResponse
- httpClient() - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Returns the
OkHttpClient
set. - httpClient() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- httpClient(OkHttpClient) - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Sets a new http client
- httpClient(OkHttpClient) - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
I
- isBot() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Deprecated.Due to the nature of OAuth2 at this moment, bots are not allowed to use the various urls provided.
- isCurrentTokenValid() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
- isCurrentTokenValid() - Method in interface com.mrivanplays.jdoa2.JDOA2
-
Returns whenever the token we have is valid or not.
- isGlobal() - Method in class com.mrivanplays.jdoa2.internal.RateLimitedResponse
- ISnowflake - Interface in com.mrivanplays.jdoa2
-
Represents a snowflake object, from discord's api
- isOwner() - Method in class com.mrivanplays.jdoa2.Guild
-
Returns whenever the
CurrentUser
is owner of this guild. - isTwoFAEnabled() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns whenever the current user has 2FA enabled.
- isVerified() - Method in class com.mrivanplays.jdoa2.CurrentUser
-
Returns if the user has verified his email or not.
J
- JDOA2 - Interface in com.mrivanplays.jdoa2
-
Represents the driver of the all components.
- JDOA2Builder - Class in com.mrivanplays.jdoa2
-
Represents a
JDOA2
builder. - JDOA2Builder() - Constructor for class com.mrivanplays.jdoa2.JDOA2Builder
- JDOA2Builder(ApplicationInfo) - Constructor for class com.mrivanplays.jdoa2.JDOA2Builder
- JDOA2Impl - Class in com.mrivanplays.jdoa2.internal
- JDOA2Impl(JDOA2Builder) - Constructor for class com.mrivanplays.jdoa2.internal.JDOA2Impl
- JDOA2Utils - Class in com.mrivanplays.jdoa2
-
A utility class.
- JDOA2Utils() - Constructor for class com.mrivanplays.jdoa2.JDOA2Utils
- jsonMapper() - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Returns the
ObjectMapper
set. - jsonMapper() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- jsonMapper(ObjectMapper) - Method in class com.mrivanplays.jdoa2.JDOA2Builder
-
Sets a new json mapper.
- jsonMapper(ObjectMapper) - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
M
- MissingScopeException - Exception in com.mrivanplays.jdoa2
-
Represents a
RuntimeException
, thrown if a data is requested which isn't accessible (doesn't have a specified scope.) - MissingScopeException(String) - Constructor for exception com.mrivanplays.jdoa2.MissingScopeException
N
- newSession(String) - Method in class com.mrivanplays.jdoa2.internal.SessionManagerImpl
- newSession(String) - Method in interface com.mrivanplays.jdoa2.SessionManager
-
Creates a new
JDOA2
session for the specifiedauthCode
.
P
- parseScopes() - Method in class com.mrivanplays.jdoa2.DiscordToken
-
Parses the scopes to a json array, for easily iterating thru them.
- put(String, String) - Method in class com.mrivanplays.jdoa2.internal.RequestParams
R
- RateLimitedException - Exception in com.mrivanplays.jdoa2
-
Represents a exception, thrown whenever we hit the rate limit of discord's api.
- RateLimitedException(String) - Constructor for exception com.mrivanplays.jdoa2.RateLimitedException
- RateLimitedResponse - Class in com.mrivanplays.jdoa2.internal
- RateLimitedResponse(boolean, String, int) - Constructor for class com.mrivanplays.jdoa2.internal.RateLimitedResponse
- redirectUri() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Application's URL callback.
- redirectUri() - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- redirectUri(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
-
Sets the application's URL callback.
- redirectUri(String) - Method in class com.mrivanplays.jdoa2.SessionManagerBuilder
- RequestParams - Class in com.mrivanplays.jdoa2.internal
- RequestParams() - Constructor for class com.mrivanplays.jdoa2.internal.RequestParams
S
- SessionManager - Interface in com.mrivanplays.jdoa2
-
Represents a session manager, for managing
JDOA2
instances, used by your application. - SessionManagerBuilder - Class in com.mrivanplays.jdoa2
- SessionManagerBuilder() - Constructor for class com.mrivanplays.jdoa2.SessionManagerBuilder
- SessionManagerImpl - Class in com.mrivanplays.jdoa2.internal
- SessionManagerImpl(SessionManagerBuilder) - Constructor for class com.mrivanplays.jdoa2.internal.SessionManagerImpl
T
- toEncodedString() - Method in class com.mrivanplays.jdoa2.internal.RequestParams
- toString() - Method in class com.mrivanplays.jdoa2.internal.ErrorResponse
V
- VERSION - Static variable in class com.mrivanplays.jdoa2.JDOA2Utils
-
Version of the library.
All Classes and Interfaces|All Packages|Serialized Form
Guild.getIconUrl()