Class VanityInvite

java.lang.Object
net.dv8tion.jda.api.entities.VanityInvite

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

  • Method Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object