Interface RichInvite

  • All Superinterfaces:
    Invite


    public interface RichInvite
    extends Invite
    This class represents an invite with additional information like expire date, creator, etc.
    • 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.