Class InviteCreateOptions

java.lang.Object
com.mewna.catnip.rest.invite.InviteCreateOptions
All Implemented Interfaces:
JsonConvertible

public class InviteCreateOptions extends Object implements JsonConvertible
Options for the creation of invites.
  • Constructor Details

    • InviteCreateOptions

      public InviteCreateOptions()
  • Method Details

    • create

      @Nonnull @CheckReturnValue public static InviteCreateOptions create()
    • toJson

      @Nonnull public com.grack.nanojson.JsonObject toJson()
      Specified by:
      toJson in interface JsonConvertible
    • 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

      public InviteCreateOptions maxAge(int maxAge)
      How old the invite can be before it expires.
      Returns:
      this.
    • maxUses

      public InviteCreateOptions maxUses(int maxUses)
      How many times the invite can be used
      Returns:
      this.
    • temporary

      public InviteCreateOptions temporary(boolean temporary)
      Returns:
      this.
    • unique

      public InviteCreateOptions unique(boolean unique)
      Returns:
      this.