public final class ExtendedInvite extends Invite
Invite.Type
Constructor and Description |
---|
ExtendedInvite(GatewayDiscordClient gateway,
discord4j.discordjson.json.InviteData data)
Constructs a
ExtendedInvite with an associated ServiceMediator and Discord data. |
Modifier and Type | Method and Description |
---|---|
Instant |
getCreation()
Gets when this invite was created.
|
Optional<Instant> |
getExpiration()
Gets the instant this invite expires, if possible.
|
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.
|
String |
toString() |
delete, delete, getApproximateMemberCount, getApproximatePresenceCount, getChannel, getChannel, getChannelId, getClient, getCode, getGuild, getGuild, getGuildId, getInviter, getInviter, getInviterId, getTargetUser, getTargetUser, getTargetUserId, getTargetUserType
public ExtendedInvite(GatewayDiscordClient gateway, discord4j.discordjson.json.InviteData data)
ExtendedInvite
with an associated ServiceMediator and Discord data.gateway
- The GatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.public int getUses()
public int getMaxUses()
public Optional<Instant> getExpiration()
public Instant getCreation()