Class VanityInvite


  • public class VanityInvite
    extends Object
    Meta data for the vanity invite of a guild
    Since:
    4.2.1
    • Constructor Detail

      • VanityInvite

        public VanityInvite​(@Nonnull
                            String code,
                            int uses)
    • Method Detail

      • getCode

        @Nonnull
        public String getCode()
        The invite code used for the invite url.
        Returns:
        The code
      • getUses

        public int getUses()
        How many times this invite has been used.
        This is reset after the invite is changed or removed.
        Returns:
        The invite uses
      • getUrl

        @Nonnull
        public String getUrl()
        The invite url.
        Returns:
        The invite url
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object