A B C D E G H I J M P R T V 
All Classes All Packages

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.internal
 
AuthenticationException(String) - Constructor for exception com.mrivanplays.jdoa2.internal.AuthenticationException
 
AuthenticationException(Throwable) - Constructor for exception com.mrivanplays.jdoa2.internal.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.
builder() - Static method in class com.mrivanplays.jdoa2.ApplicationInfo
builder() - Static method in interface com.mrivanplays.jdoa2.JDOA2
Creates a new JDOA2Builder
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(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
Sets the application's client id.
clientSecret() - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
Application's client secret.
clientSecret(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
Sets the application's client secret.
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
Returns whenever the specified String contains into the specified String array.
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, returning PendingRequest.
getCurrentUserGuilds() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
 
getCurrentUserGuilds() - Method in interface com.mrivanplays.jdoa2.JDOA2
Retrieves a List of Guilds, which the CurrentUser has joined in, returning PendingRequest.
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
Returns the icon url of the guild specified.
getHttpClient() - Method in class com.mrivanplays.jdoa2.internal.JDOA2Impl
 
getHttpClient() - Method in interface com.mrivanplays.jdoa2.JDOA2
Returns the OkHttpClient, used to handle requests.
getIcon() - Method in class com.mrivanplays.jdoa2.Guild
Returns the guild's icon hash
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 interface com.mrivanplays.jdoa2.JDOA2
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.
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.
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(OkHttpClient) - Method in class com.mrivanplays.jdoa2.JDOA2Builder
Sets a new http client

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(ApplicationInfo, ObjectMapper, OkHttpClient) - 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(ObjectMapper) - Method in class com.mrivanplays.jdoa2.JDOA2Builder
Sets a new json mapper.

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
 

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

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(String) - Method in class com.mrivanplays.jdoa2.ApplicationInfo.Builder
Sets the application's URL callback.
RequestParams - Class in com.mrivanplays.jdoa2.internal
 
RequestParams() - Constructor for class com.mrivanplays.jdoa2.internal.RequestParams
 

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.
A B C D E G H I J M P R T V 
All Classes All Packages