Package org.javacord.api.entity
Interface ApplicationInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.Optional<ApplicationOwner>getOwner()Gets the owner of the Application.java.util.Optional<Team>getTeam()Gets the team owning the application.default booleanisOwnedByTeam()Check if the application is owned by a team rather than a single user.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.
-
isOwnedByTeam
default boolean isOwnedByTeam()
Check if the application is owned by a team rather than a single user.- Returns:
- Whether the application is owned by a team.
-
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.
-
getOwner
java.util.Optional<ApplicationOwner> getOwner()
Gets the owner of the Application.An application might be owned by a user or team. If it is not owned by a user, this methods return value will be empty.
- Returns:
- The user owning this application, if applicable.
-
getTeam
java.util.Optional<Team> getTeam()
Gets the team owning the application.- Returns:
- The team owning the application, if applicable.
-
-