Interface ApplicationInfo

  • All Superinterfaces:
    java.util.Formattable, Nameable

    public interface ApplicationInfo
    extends Nameable
    Represents the information of an application (aka. bot). This class won't get updated after being fetched!
    • Method Detail

      • getClientId

        long getClientId()
        Gets the client id of the application.
        Returns:
        The client id of the application.
      • getDescription

        java.lang.String getDescription()
        Gets the description of the application.
        Returns:
        The description of the application.
      • isPublicBot

        boolean isPublicBot()
        Check if the application's bot is public.
        Returns:
        Whether the application's bot is public or not.
      • isOwnedByTeam

        default boolean isOwnedByTeam()
        Check if the application is owned by a team rather than a single user.
        Returns:
        Whether the application is owned by a team.
      • botRequiresCodeGrant

        boolean botRequiresCodeGrant()
        Check if the application's bot require OAuth2 code grant.
        Returns:
        Whether the application's bot require OAuth2 code grant or not.
      • getOwner

        java.util.Optional<ApplicationOwner> getOwner()
        Gets the owner of the Application.

        An application might be owned by a user or team. If it is not owned by a user, this methods return value will be empty.

        Returns:
        The user owning this application, if applicable.
      • getTeam

        java.util.Optional<Team> getTeam()
        Gets the team owning the application.
        Returns:
        The team owning the application, if applicable.