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 TypeMethodDescriptiondefault ImageProxyReturns anImageProxyfor this guild's banner image.The guild banner id.default StringThe guild banner url.The description for this guild.The Features of theGuild.default ImageProxygetIcon()Returns anImageProxyfor this guild's iconThe icon id of this guild.The icon url of this guild.intReturns the approximate count of total members in the guild.getName()The name of this guild.Returns theGuild.NSFWLevelof this guild.intReturns the approximate count of online members in the guild.default ImageProxyReturns anImageProxyfor this invite guild's splash image.The splash image id of this guild.Returns the splash image url of this guild.The vanity url code for this Guild.default StringThe vanity url for this Guild.Returns theVerificationLevelof this guild.The welcome screen of theGuild.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getVanityCode
The vanity url code for this Guild. The vanity url is the custom invite code of partnered / official / boosted Guilds.
The returned String will be the code that can be provided todiscord.gg/{code}to get the invite link.- Returns:
- The vanity code or null
- See Also:
-
getVanityUrl
The vanity url for this Guild. The vanity url is the custom invite code of partnered / official / boosted Guilds.
The returned String will be the vanity invite link to this guild.- Returns:
- The vanity url or null
-
getBannerId
The guild banner id.
This is shown in guilds below the guild name.- Returns:
- The guild banner id or null
- See Also:
-
getBannerUrl
The guild banner url.
This is shown in guilds below the guild name.- Returns:
- The guild banner url or null
-
getBanner
Returns anImageProxyfor this guild's banner image.- Returns:
- Possibly-null
ImageProxyof this guild's banner image - See Also:
-
getDescription
The description for this guild.
This is displayed in the server browser below the guild name for verified guilds, and in embedded invite links.- Returns:
- The guild's description
-
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:
-
getIcon
Returns anImageProxyfor this guild's icon- Returns:
- Possibly-null
ImageProxyof this guild's icon - 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
nullif 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
nullif the guild has no splash image - See Also:
-
getSplash
Returns anImageProxyfor this invite guild's splash image.- Returns:
- Possibly-null
ImageProxyof this invite guild's splash image - See Also:
-
getVerificationLevel
Returns theVerificationLevelof this guild.- Returns:
- the verification level of the guild
-
getNSFWLevel
Returns theGuild.NSFWLevelof this guild.- Returns:
- the nsfw 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.
-
getWelcomeScreen
The welcome screen of theGuild.
This will benullif the Guild has no welcome screen, or if the invite came from aGuildInviteCreateEvent.- Returns:
- The welcome screen of this Guild or
null
-