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 aIntegrationApplicationwith an associatedGatewayDiscordClientand 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.GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.discord4j.discordjson.json.IntegrationApplicationDatagetData()Gets the data of the account.StringgetDescription()Gets the description of the app.Optional<String>getIconUrl(Image.Format format)Gets the icon URL of the application, if present.SnowflakegetId()Gets the Snowflake that uniquely identifies this entity.StringgetName()Gets the name of the app.StringgetSummary()Gets the summary of the app.
-
-
-
Constructor Detail
-
IntegrationApplication
public IntegrationApplication(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationApplicationData data)
Constructs aIntegrationApplicationwith an associatedGatewayDiscordClientand Discord data.- Parameters:
gateway- TheGatewayDiscordClientassociated 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:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
getId
public Snowflake getId()
Description copied from interface:EntityGets 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.
-
-