Package discord4j.core.object.entity
Class IntegrationApplication
java.lang.Object
discord4j.core.object.entity.IntegrationApplication
- All Implemented Interfaces:
DiscordObject
,Entity
A Discord Integration Application.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationApplication
(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationApplicationData data) Constructs aIntegrationApplication
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptiongetBot()
Gets the bot associated with this application, if present.Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.IntegrationApplicationData
getData()
Gets the data of the account.Gets the description of the app.getIconUrl
(Image.Format format) Gets the icon URL of the application, if present.getId()
Gets the Snowflake that uniquely identifies this entity.getName()
Gets the name of the app.Gets the summary of the app.
-
Constructor Details
-
IntegrationApplication
public IntegrationApplication(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationApplicationData data) Constructs aIntegrationApplication
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
getId
Description copied from interface:Entity
Gets the Snowflake that uniquely identifies this entity. -
getData
public discord4j.discordjson.json.IntegrationApplicationData getData()Gets the data of the account.- Returns:
- The data of the account.
-
getName
Gets the name of the app.- Returns:
- The name of the app.
-
getIconUrl
Gets the icon URL of the application, if present.- Parameters:
format
- The format for the URL.- Returns:
- The icon URL of the application, if present.
-
getDescription
Gets the description of the app.- Returns:
- The description of the app.
-
getSummary
Gets the summary of the app.- Returns:
- The description of the app.
-
getBot
Gets the bot associated with this application, if present.- Returns:
- The bot associated with this application, if present.
-