Class IntegrationApplication

    • Constructor Detail

      • 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 Detail

      • 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.