Package discord4j.core.object.entity
Class IntegrationApplication
- java.lang.Object
-
- discord4j.core.object.entity.IntegrationApplication
-
- All Implemented Interfaces:
DiscordObject
,Entity
public class IntegrationApplication extends Object implements Entity
A Discord Integration Application.- See Also:
- Integration Application Resource
-
-
Constructor Summary
Constructors Constructor Description IntegrationApplication(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationApplicationData data)
Constructs aIntegrationApplication
with an associatedGatewayDiscordClient
and Discord data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<User>
getBot()
Gets the bot associated with this application, if present.GatewayDiscordClient
getClient()
Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.IntegrationApplicationData
getData()
Gets the data of the account.String
getDescription()
Gets the description of the app.Optional<String>
getIconUrl(Image.Format format)
Gets the icon URL of the application, if present.Snowflake
getId()
Gets the Snowflake that uniquely identifies this entity.String
getName()
Gets the name of the app.String
getSummary()
Gets the summary of the app.
-
-
-
Constructor Detail
-
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 Detail
-
getClient
public GatewayDiscordClient 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
public Snowflake 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
public String getName()
Gets the name of the app.- Returns:
- The name of the app.
-
getIconUrl
public Optional<String> getIconUrl(Image.Format format)
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
public String getDescription()
Gets the description of the app.- Returns:
- The description of the app.
-
getSummary
public String getSummary()
Gets the summary of the app.- Returns:
- The description of the app.
-
-