Class ApplicationInfoImpl
- java.lang.Object
-
- org.javacord.core.entity.activity.ApplicationInfoImpl
-
- All Implemented Interfaces:
Formattable
,ApplicationInfo
,Nameable
public class ApplicationInfoImpl extends Object implements ApplicationInfo
The implementation ofApplicationInfo
.
-
-
Constructor Summary
Constructors Constructor Description ApplicationInfoImpl(DiscordApi api, com.fasterxml.jackson.databind.JsonNode data)
Creates a new application info object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
botRequiresCodeGrant()
long
getClientId()
String
getDescription()
String
getName()
CompletableFuture<User>
getOwner()
String
getOwnerDiscriminator()
long
getOwnerId()
String
getOwnerName()
boolean
isPublicBot()
-
-
-
Constructor Detail
-
ApplicationInfoImpl
public ApplicationInfoImpl(DiscordApi api, com.fasterxml.jackson.databind.JsonNode data)
Creates a new application info object.- Parameters:
api
- The discord api.data
- The json data of the application.
-
-
Method Detail
-
getClientId
public long getClientId()
- Specified by:
getClientId
in interfaceApplicationInfo
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceApplicationInfo
-
isPublicBot
public boolean isPublicBot()
- Specified by:
isPublicBot
in interfaceApplicationInfo
-
botRequiresCodeGrant
public boolean botRequiresCodeGrant()
- Specified by:
botRequiresCodeGrant
in interfaceApplicationInfo
-
getOwnerName
public String getOwnerName()
- Specified by:
getOwnerName
in interfaceApplicationInfo
-
getOwnerId
public long getOwnerId()
- Specified by:
getOwnerId
in interfaceApplicationInfo
-
getOwnerDiscriminator
public String getOwnerDiscriminator()
- Specified by:
getOwnerDiscriminator
in interfaceApplicationInfo
-
getOwner
public CompletableFuture<User> getOwner()
- Specified by:
getOwner
in interfaceApplicationInfo
-
-