Package com.mewna.catnip.rest.invite
Class InviteCreateOptions
java.lang.Object
com.mewna.catnip.rest.invite.InviteCreateOptions
- All Implemented Interfaces:
JsonConvertible
Options for the creation of invites.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InviteCreateOptions
create()
int
maxAge()
How old the invite can be before it expires.maxAge
(int maxAge) How old the invite can be before it expires.int
maxUses()
How many times the invite can be usedmaxUses
(int maxUses) How many times the invite can be usedboolean
temporary
(boolean temporary) com.grack.nanojson.JsonObject
toJson()
boolean
unique()
unique
(boolean unique)
-
Constructor Details
-
InviteCreateOptions
public InviteCreateOptions()
-
-
Method Details
-
create
-
toJson
@Nonnull public com.grack.nanojson.JsonObject toJson()- Specified by:
toJson
in interfaceJsonConvertible
-
maxAge
public int maxAge()How old the invite can be before it expires. -
maxUses
public int maxUses()How many times the invite can be used -
temporary
public boolean temporary() -
unique
public boolean unique() -
maxAge
How old the invite can be before it expires.- Returns:
this
.
-
maxUses
How many times the invite can be used- Returns:
this
.
-
temporary
- Returns:
this
.
-
unique
- Returns:
this
.
-