Interface RichInvite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetCreationTimestamp()Gets the creation date of the invite.intgetMaxAgeInSeconds()Gets the duration (in seconds) after which the invite expires.intgetMaxUses()Gets the max number of times this invite can be used.intgetUses()Gets the number of times this invite has been used.booleanisRevoked()Checks if the invite is revoked.booleanisTemporary()Checks if the invite only grants temporary membership.-
Methods inherited from interface org.javacord.api.entity.server.invite.Invite
delete, delete, getApproximateMemberCount, getApproximatePresenceCount, getChannel, getChannelId, getChannelName, getChannelType, getCode, getInviter, getServer, getServerIcon, getServerId, getServerName, getServerSplash, getTargetUser, getTargetUserType, getUrl
-
-
-
-
Method Detail
-
getUses
int getUses()
Gets the number of times this invite has been used.- Returns:
- The number of times this invite has been used.
-
getMaxUses
int getMaxUses()
Gets the max number of times this invite can be used.- Returns:
- The max number of times this invite can be used.
-
getMaxAgeInSeconds
int getMaxAgeInSeconds()
Gets the duration (in seconds) after which the invite expires.- Returns:
- The duration (in seconds) after which the invite expires.
-
isTemporary
boolean isTemporary()
Checks if the invite only grants temporary membership.- Returns:
- Whether the invite only grants temporary membership or not.
-
getCreationTimestamp
Instant getCreationTimestamp()
Gets the creation date of the invite.- Returns:
- The creation date of the invite.
-
isRevoked
boolean isRevoked()
Checks if the invite is revoked.- Returns:
- Whether the invite is revoked or not.
-
-