Package org.javacord.api.entity
Interface ApplicationInfo
-
-
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.java.lang.StringgetDescription()Gets the description of the application.java.util.concurrent.CompletableFuture<User>getOwner()Gets the owner of the application.java.lang.StringgetOwnerDiscriminator()Gets the discriminator of the application owner.longgetOwnerId()Gets the id of the application owner.java.lang.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
java.lang.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
java.lang.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
java.lang.String getOwnerDiscriminator()
Gets the discriminator of the application owner.- Returns:
- The discriminator of the application owner.
-
getOwner
java.util.concurrent.CompletableFuture<User> getOwner()
Gets the owner of the application.- Returns:
- The owner of the application.
-
-