Skip to content

Commit

Permalink
Add member pending field (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadorc committed Dec 23, 2020
1 parent 8b49c64 commit 13d5518
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions core/src/main/java/discord4j/core/object/entity/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,15 @@ public Mono<Presence> getPresence() {
.map(Presence::new);
}

/**
* Gets whether the user has not yet passed the guild's Membership Screening requirements.
*
* @return Whether the user has not yet passed the guild's Membership Screening requirements.
*/
public boolean isPending() {
return data.pending().toOptional().orElse(false);
}

/**
* Requests to kick this member.
*
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ org.gradle.caching=true
systemProp.org.gradle.internal.publish.checksums.insecure=true
version=3.1.4-SNAPSHOT
storesVersion=3.1.5
discordJsonVersion=1.5.6
discordJsonVersion=1.5.7-SNAPSHOT
storesArtifact=com.discord4j:stores-jdk

0 comments on commit 13d5518

Please sign in to comment.