Interface AuthorizedApplication

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RestAction<java.lang.Void> delete()
      Removes the authorization from this application.
      java.lang.String getAuthId()
      The authorization id for this application.
      java.lang.String getDescription()
      The description of the application.
      java.lang.String getIconId()
      The icon id of this Application.
      java.lang.String getIconUrl()
      The icon-url of this Application.
      JDA getJDA()
      The JDA instance of this AuthorizedApplication (the one owning this authorisation).
      java.lang.String getName()
      The name of this Application.
      java.util.List<java.lang.String> getScopes()
      List of authorization scopes of this Application.
    • Method Detail

      • delete

        @CheckReturnValue
        RestAction<java.lang.Void> delete()
        Removes the authorization from this application.

        Possible ErrorResponses:

        • UNKNOWN_TOKEN
          The Application isn't authorized by this user account anymore.
        Returns:
        RestAction - Type: Void
        The RestAction to delete this authorisation
      • getAuthId

        java.lang.String getAuthId()
        The authorization id for this application.
        This id is only used to remove the authorization.
        Returns:
        The authorization id.
      • getDescription

        java.lang.String getDescription()
        The description of the application.
        Returns:
        The description of the application or an empty String if no description is defined
      • getIconId

        java.lang.String getIconId()
        The icon id of this Application.
        Returns:
        The icon id of this Application or null, if no icon is defined
      • getIconUrl

        java.lang.String getIconUrl()
        The icon-url of this Application.
        Returns:
        The icon-url of this Application or null, if no icon is defined
      • getJDA

        JDA getJDA()
        The JDA instance of this AuthorizedApplication (the one owning this authorisation).
        Returns:
        The JDA instance of this AuthorizedApplication
      • getName

        java.lang.String getName()
        The name of this Application.
        Returns:
        The name of this Application