Interface RichInvite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Instant
getCreationTimestamp()
Gets the creation date of the invite.User
getInviter()
Gets the user who created the invite.int
getMaxAgeInSeconds()
Gets the duration (in seconds) after which the invite expires.int
getMaxUses()
Gets the max number of times this invite can be used.int
getUses()
Gets the number of times this invite has been used.boolean
isRevoked()
Checks if the invite is revoked.boolean
isTemporary()
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, getServer, getServerIcon, getServerId, getServerName, getServerSplash, getUrl
-
-
-
-
Method Detail
-
getInviter
User getInviter()
Gets the user who created the invite.- Returns:
- The user who created the invite.
-
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.
-
-