public final class ExtendedInvite extends Invite
Constructor and Description |
---|
ExtendedInvite(ServiceMediator serviceMediator,
ExtendedInviteBean 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.
|
Mono<User> |
getInviter()
Requests to retrieve the user who created the invite.
|
Snowflake |
getInviterId()
Gets the ID of the user who created the invite.
|
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, getChannel, getChannelId, getClient, getCode, getGuild, getGuildId
public ExtendedInvite(ServiceMediator serviceMediator, ExtendedInviteBean data)
ExtendedInvite
with an associated ServiceMediator and Discord data.serviceMediator
- The ServiceMediator associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.public Snowflake getInviterId()
public int getUses()
public int getMaxUses()
public Optional<Instant> getExpiration()
public Instant getCreation()