Package net.dv8tion.jda.api.entities
Interface Invite.Guild
- All Superinterfaces:
ISnowflake
- Enclosing interface:
- Invite
POJO for the guild information provided by an invite.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe Features of theGuild
.The icon id of this guild.The icon url of this guild.int
Returns the approximate count of total members in the guild.getName()
The name of this guild.int
Returns the approximate count of online members in the guild.The splash image id of this guild.Returns the splash image url of this guild.Returns theVerificationLevel
of this guild.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getIconId
The icon id of this guild.- Returns:
- The guild's icon id
- See Also:
-
getIconUrl
The icon url of this guild.- Returns:
- The guild's icon url
- See Also:
-
getName
The name of this guild.- Returns:
- The guild's name
-
getSplashId
The splash image id of this guild.- Returns:
- The guild's splash image id or
null
if the guild has no splash image - See Also:
-
getSplashUrl
Returns the splash image url of this guild.- Returns:
- The guild's splash image url or
null
if the guild has no splash image - See Also:
-
getVerificationLevel
Returns theVerificationLevel
of this guild.- Returns:
- the verification level of the guild
-
getOnlineCount
int getOnlineCount()Returns the approximate count of online members in the guild. If the online member count was not included in the invite, this will return -1. Counts will usually only be returned when resolving the invite via theInvite.resolve()
method with the withCounts boolean set totrue
- Returns:
- the approximate count of online members in the guild, or -1 if not present in the invite
-
getMemberCount
int getMemberCount()Returns the approximate count of total members in the guild. If the total member count was not included in the invite, this will return -1. Counts will usually only be returned when resolving the invite via theInvite.resolve()
method with the withCounts boolean set totrue
- Returns:
- the approximate count of total members in the guild, or -1 if not present in the invite
-
getFeatures
The Features of theGuild
.Possible known features:
- VIP_REGIONS - Guild has VIP voice regions
- VANITY_URL - Guild a vanity URL (custom invite link)
- INVITE_SPLASH - Guild has custom invite splash. See
getSplashId()
andgetSplashUrl()
- VERIFIED - Guild is "verified"
- MORE_EMOJI - Guild is able to use more than 50 emoji
- Returns:
- Never-null, unmodifiable Set containing all of the Guild's features.
-