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:
  • Constructor Details

    • IntegrationApplication

      public IntegrationApplication(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationApplicationData data)
      Constructs a IntegrationApplication with an associated GatewayDiscordClient and Discord data.
      Parameters:
      gateway - The GatewayDiscordClient associated to this object, must be non-null.
      data - The raw data as represented by Discord, must be non-null.
  • Method Details

    • getClient

      public GatewayDiscordClient getClient()
      Description copied from interface: DiscordObject
      Returns the GatewayDiscordClient that created this object. Methods in it are exclusively based on the entity cache or Store in use. Refer to calling getClient().rest() to access a DiscordClient that is capable of requesting entities directly from the REST API.
      Specified by:
      getClient in interface DiscordObject
      Returns:
      The GatewayDiscordClient associated to this object.
    • getId

      public Snowflake getId()
      Description copied from interface: Entity
      Gets the Snowflake that uniquely identifies this entity.
      Specified by:
      getId in interface Entity
      Returns:
      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.
    • getBot

      public Optional<User> getBot()
      Gets the bot associated with this application, if present.
      Returns:
      The bot associated with this application, if present.