Package net.dv8tion.jda.client.entities
Interface AuthorizedApplication
-
- All Superinterfaces:
ISnowflake
public interface AuthorizedApplication extends ISnowflake
Represents a Discord Application from the point of view of a client having authorized it.
This is an applications that does not belong to you, but rather one that you have authorized to your account.- Since:
- 3.0
- Author:
- Aljoscha Grebe
- See Also:
- Discord Documentation - Authorized Apps,
JDAClient.getAuthorizedApplications()
,JDAClient.getAuthorizedApplicationById(String)
-
-
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()
TheJDA
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.-
Methods inherited from interface net.dv8tion.jda.core.entities.ISnowflake
getCreationTime, getId, getIdLong
-
-
-
-
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 toremove 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()
TheJDA
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
-
getScopes
java.util.List<java.lang.String> getScopes()
List of authorization scopes of this Application.
For a complete list of valid scopes go to the Official Discord Documentation.- Returns:
- The authorisation scopes
- See Also:
- List of Discord OAuth2 scopes
-
-