Package net.dv8tion.jda.api.entities
Class VanityInvite
- java.lang.Object
-
- net.dv8tion.jda.api.entities.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-