Class VanityInvite


  • public class VanityInvite
    extends java.lang.Object
    Meta data for the vanity invite of a guild
    Since:
    4.2.1
    • Constructor Summary

      Constructors 
      Constructor Description
      VanityInvite​(java.lang.String code, int uses)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getCode()
      The invite code used for the invite url.
      java.lang.String getUrl()
      The invite url.
      int getUses()
      How many times this invite has been used.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VanityInvite

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

      • getCode

        @Nonnull
        public java.lang.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 java.lang.String getUrl()
        The invite url.
        Returns:
        The invite url
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object