Package net.dv8tion.jda.api.entities
Class VanityInvite
- java.lang.Object
-
- net.dv8tion.jda.api.entities.VanityInvite
-
public class VanityInvite extends java.lang.ObjectMeta 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 booleanequals(java.lang.Object obj)java.lang.StringgetCode()The invite code used for the invite url.java.lang.StringgetUrl()The invite url.intgetUses()How many times this invite has been used.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-