Package org.javacord.api.entity
Interface ApplicationInfo
-
- All Superinterfaces:
Formattable,Nameable
public interface ApplicationInfo extends Nameable
Represents the information of an application (aka. bot). This class won't get updated after being fetched!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbotRequiresCodeGrant()Check if the application's bot require OAuth2 code grant.longgetClientId()Gets the client id of the application.StringgetDescription()Gets the description of the application.CompletableFuture<User>getOwner()Gets the owner of the application.StringgetOwnerDiscriminator()Gets the discriminator of the application owner.longgetOwnerId()Gets the id of the application owner.StringgetOwnerName()Gets the name of the application owner.booleanisPublicBot()Check if the application's bot is public.
-
-
-
Method Detail
-
getClientId
long getClientId()
Gets the client id of the application.- Returns:
- The client id of the application.
-
getDescription
String getDescription()
Gets the description of the application.- Returns:
- The description of the application.
-
isPublicBot
boolean isPublicBot()
Check if the application's bot is public.- Returns:
- Whether the application's bot is public or not.
-
botRequiresCodeGrant
boolean botRequiresCodeGrant()
Check if the application's bot require OAuth2 code grant.- Returns:
- Whether the application's bot require OAuth2 code grant or not.
-
getOwnerName
String getOwnerName()
Gets the name of the application owner.- Returns:
- The name of the application owner.
-
getOwnerId
long getOwnerId()
Gets the id of the application owner.- Returns:
- The id of the application owner.
-
getOwnerDiscriminator
String getOwnerDiscriminator()
Gets the discriminator of the application owner.- Returns:
- The discriminator of the application owner.
-
getOwner
CompletableFuture<User> getOwner()
Gets the owner of the application.- Returns:
- The owner of the application.
-
-