Class InviteImpl.GuildImpl
java.lang.Object
net.dv8tion.jda.internal.entities.InviteImpl.GuildImpl
- All Implemented Interfaces:
Invite.Guild
,ISnowflake
- Enclosing class:
InviteImpl
-
Constructor Summary
ConstructorsConstructorDescriptionGuildImpl
(long id, String iconId, String name, String splashId, Guild.VerificationLevel verificationLevel, int presenceCount, int memberCount, Set<String> features, GuildWelcomeScreen welcomeScreen) -
Method Summary
Modifier and TypeMethodDescriptionThe Features of theGuild
.The icon id of this guild.The icon url of this guild.long
The Snowflake id of this entity.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.The welcome screen of theGuild
.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.entities.Invite.Guild
getIcon, getSplash
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
GuildImpl
public GuildImpl(long id, String iconId, String name, String splashId, Guild.VerificationLevel verificationLevel, int presenceCount, int memberCount, Set<String> features, GuildWelcomeScreen welcomeScreen) -
GuildImpl
-
-
Method Details
-
getIconId
Description copied from interface:Invite.Guild
The icon id of this guild.- Specified by:
getIconId
in interfaceInvite.Guild
- Returns:
- The guild's icon id
- See Also:
-
getIconUrl
Description copied from interface:Invite.Guild
The icon url of this guild.- Specified by:
getIconUrl
in interfaceInvite.Guild
- Returns:
- The guild's icon url
- See Also:
-
getIdLong
public long getIdLong()Description copied from interface:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in interfaceISnowflake
- Returns:
- Long containing the Id.
-
getName
Description copied from interface:Invite.Guild
The name of this guild.- Specified by:
getName
in interfaceInvite.Guild
- Returns:
- The guild's name
-
getSplashId
Description copied from interface:Invite.Guild
The splash image id of this guild.- Specified by:
getSplashId
in interfaceInvite.Guild
- Returns:
- The guild's splash image id or
null
if the guild has no splash image - See Also:
-
getSplashUrl
Description copied from interface:Invite.Guild
Returns the splash image url of this guild.- Specified by:
getSplashUrl
in interfaceInvite.Guild
- Returns:
- The guild's splash image url or
null
if the guild has no splash image - See Also:
-
getVerificationLevel
Description copied from interface:Invite.Guild
Returns theVerificationLevel
of this guild.- Specified by:
getVerificationLevel
in interfaceInvite.Guild
- Returns:
- the verification level of the guild
-
getOnlineCount
public int getOnlineCount()Description copied from interface:Invite.Guild
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
- Specified by:
getOnlineCount
in interfaceInvite.Guild
- Returns:
- the approximate count of online members in the guild, or -1 if not present in the invite
-
getMemberCount
public int getMemberCount()Description copied from interface:Invite.Guild
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
- Specified by:
getMemberCount
in interfaceInvite.Guild
- Returns:
- the approximate count of total members in the guild, or -1 if not present in the invite
-
getFeatures
Description copied from interface:Invite.Guild
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
Invite.Guild.getSplashId()
andInvite.Guild.getSplashUrl()
- VERIFIED - Guild is "verified"
- MORE_EMOJI - Guild is able to use more than 50 emoji
- Specified by:
getFeatures
in interfaceInvite.Guild
- Returns:
- Never-null, unmodifiable Set containing all of the Guild's features.
-
getWelcomeScreen
Description copied from interface:Invite.Guild
The welcome screen of theGuild
.
This will benull
if the Guild has no welcome screen, or if the invite came from aGuildInviteCreateEvent
.- Specified by:
getWelcomeScreen
in interfaceInvite.Guild
- Returns:
- The welcome screen of this Guild or
null
-
toString
-