Interface ApplicationInfo

  • All Superinterfaces:
    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

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

        String getOwnerName​()
        Gets the name of the application owner.
        Returns:
        The name of the application owner.
      • getOwnerId

        long getOwnerId​()
        Gets the id of the application owner.
        Returns:
        The id of the application owner.
      • getOwnerDiscriminator

        String getOwnerDiscriminator​()
        Gets the discriminator of the application owner.
        Returns:
        The discriminator of the application owner.
      • getOwner

        CompletableFuture<User> getOwner​()
        Gets the owner of the application.
        Returns:
        The owner of the application.