public interface JDAClient
| Modifier and Type | Method | Description |
|---|---|---|
ApplicationAction |
createApplication(java.lang.String name) |
Creates a new
Application for this user account
with the given name. |
RestAction<Application> |
getApplicationById(java.lang.String id) |
Retrieves a specific
Application owned by this user account. |
RestAction<java.util.List<Application>> |
getApplications() |
Retrieves all
Applications owned by this user account. |
RestAction<AuthorizedApplication> |
getAuthorizedApplicationById(java.lang.String id) |
Retrieves a specific
AuthorizedApplication authorized by this user account. |
RestAction<java.util.List<AuthorizedApplication>> |
getAuthorizedApplications() |
Retrieves all
AuthorizedApplications authorized by this user account. |
Friend |
getFriend(Member member) |
|
Friend |
getFriend(User user) |
|
Friend |
getFriendById(long id) |
|
Friend |
getFriendById(java.lang.String id) |
|
java.util.List<Friend> |
getFriends() |
|
java.util.List<Friend> |
getFriendsByName(java.lang.String name,
boolean ignoreCase) |
|
default Group |
getGroupById(long id) |
|
default Group |
getGroupById(java.lang.String id) |
|
SnowflakeCacheView<Group> |
getGroupCache() |
|
default java.util.List<Group> |
getGroups() |
|
default java.util.List<Group> |
getGroupsByName(java.lang.String name,
boolean ignoreCase) |
|
JDA |
getJDA() |
|
MentionPaginationAction |
getRecentMentions() |
Retrieves the recent mentions for the currently logged in
client account.
|
MentionPaginationAction |
getRecentMentions(Guild guild) |
Retrieves the recent mentions for the currently logged in
client account.
|
Relationship |
getRelationship(Member member) |
|
Relationship |
getRelationship(User user) |
|
Relationship |
getRelationshipById(long id) |
|
Relationship |
getRelationshipById(long id,
RelationshipType type) |
|
Relationship |
getRelationshipById(java.lang.String id) |
|
Relationship |
getRelationshipById(java.lang.String id,
RelationshipType type) |
|
java.util.List<Relationship> |
getRelationships() |
|
java.util.List<Relationship> |
getRelationships(RelationshipType type) |
|
java.util.List<Relationship> |
getRelationships(RelationshipType type,
java.lang.String name,
boolean ignoreCase) |
|
java.util.List<Relationship> |
getRelationshipsByName(java.lang.String name,
boolean ignoreCase) |
|
UserSettings |
getSettings() |
JDA getJDA()
SnowflakeCacheView<Group> getGroupCache()
default java.util.List<Group> getGroups()
default java.util.List<Group> getGroupsByName(java.lang.String name, boolean ignoreCase)
default Group getGroupById(java.lang.String id)
default Group getGroupById(long id)
java.util.List<Relationship> getRelationships()
java.util.List<Relationship> getRelationships(RelationshipType type)
java.util.List<Relationship> getRelationships(RelationshipType type, java.lang.String name, boolean ignoreCase)
java.util.List<Relationship> getRelationshipsByName(java.lang.String name, boolean ignoreCase)
Relationship getRelationship(User user)
Relationship getRelationship(Member member)
Relationship getRelationshipById(java.lang.String id)
Relationship getRelationshipById(long id)
Relationship getRelationshipById(java.lang.String id, RelationshipType type)
Relationship getRelationshipById(long id, RelationshipType type)
java.util.List<Friend> getFriends()
java.util.List<Friend> getFriendsByName(java.lang.String name, boolean ignoreCase)
Friend getFriendById(java.lang.String id)
Friend getFriendById(long id)
@CheckReturnValue MentionPaginationAction getRecentMentions()
The returned MentionPaginationAction
allows to filter by whether the messages mention everyone or a role.
MentionPaginationAction@CheckReturnValue MentionPaginationAction getRecentMentions(Guild guild)
The returned MentionPaginationAction
allows to filter by whether the messages mention everyone or a role.
To target recent mentions from all over Discord use getRecentMentions() instead!
guild - The Guild to narrow recent mentions toMentionPaginationActionjava.lang.IllegalArgumentException - If the specified Guild is nullUserSettings getSettings()
@CheckReturnValue ApplicationAction createApplication(java.lang.String name)
Application for this user account
with the given name.
A name must not be null nor less than 2 characters or more than 32 characters long!
Possible ErrorResponses caused by
the returned RestAction include the following:
MAX_OAUTH_APPS
name - The name for new ApplicationApplicationAction
java.lang.IllegalArgumentException - If the provided name is null, less than 2 or more than 32 characters long@CheckReturnValue RestAction<java.util.List<Application>> getApplications()
Applications owned by this user account.RestAction - Type:
List<Application>
@CheckReturnValue RestAction<Application> getApplicationById(java.lang.String id)
Application owned by this user account.
Possible ErrorResponses:
UNKNOWN_APPLICATION
id - The id for the ApplicationRestAction - Type: Application
java.lang.IllegalArgumentException - If the provided id is null or empty@CheckReturnValue RestAction<java.util.List<AuthorizedApplication>> getAuthorizedApplications()
AuthorizedApplications authorized by this user account.RestAction - Type:
List<AuthorizedApplication>
@CheckReturnValue RestAction<AuthorizedApplication> getAuthorizedApplicationById(java.lang.String id)
AuthorizedApplication authorized by this user account.
Possible ErrorResponses:
UNKNOWN_TOKEN
id - The id of the AuthorizedApplicationRestAction - Type:
AuthorizedApplication
java.lang.IllegalArgumentException - If the provided id is null or empty