Class InviteImpl.GuildImpl

java.lang.Object
net.dv8tion.jda.internal.entities.InviteImpl.GuildImpl
All Implemented Interfaces:
Invite.Guild, ISnowflake
Enclosing class:
InviteImpl

public static class InviteImpl.GuildImpl extends Object implements Invite.Guild
  • Constructor Details

  • Method Details

    • getIconId

      public String getIconId()
      Description copied from interface: Invite.Guild
      The icon id of this guild.
      Specified by:
      getIconId in interface Invite.Guild
      Returns:
      The guild's icon id
      See Also:
    • getIconUrl

      public String getIconUrl()
      Description copied from interface: Invite.Guild
      The icon url of this guild.
      Specified by:
      getIconUrl in interface Invite.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 interface ISnowflake
      Returns:
      Long containing the Id.
    • getName

      @Nonnull public String getName()
      Description copied from interface: Invite.Guild
      The name of this guild.
      Specified by:
      getName in interface Invite.Guild
      Returns:
      The guild's name
    • getSplashId

      public String getSplashId()
      Description copied from interface: Invite.Guild
      The splash image id of this guild.
      Specified by:
      getSplashId in interface Invite.Guild
      Returns:
      The guild's splash image id or null if the guild has no splash image
      See Also:
    • getSplashUrl

      public String getSplashUrl()
      Description copied from interface: Invite.Guild
      Returns the splash image url of this guild.
      Specified by:
      getSplashUrl in interface Invite.Guild
      Returns:
      The guild's splash image url or null if the guild has no splash image
      See Also:
    • getVerificationLevel

      @Nonnull public Guild.VerificationLevel getVerificationLevel()
      Description copied from interface: Invite.Guild
      Returns the VerificationLevel of this guild.
      Specified by:
      getVerificationLevel in interface Invite.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 the Invite.resolve() method with the withCounts boolean set to true
      Specified by:
      getOnlineCount in interface Invite.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 the Invite.resolve() method with the withCounts boolean set to true
      Specified by:
      getMemberCount in interface Invite.Guild
      Returns:
      the approximate count of total members in the guild, or -1 if not present in the invite
    • getFeatures

      @Nonnull public Set<String> getFeatures()
      Description copied from interface: Invite.Guild
      The Features of the Guild.

      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() and Invite.Guild.getSplashUrl()
      • VERIFIED - Guild is "verified"
      • MORE_EMOJI - Guild is able to use more than 50 emoji
      Specified by:
      getFeatures in interface Invite.Guild
      Returns:
      Never-null, unmodifiable Set containing all of the Guild's features.
    • getWelcomeScreen

      @Nullable public GuildWelcomeScreen getWelcomeScreen()
      Description copied from interface: Invite.Guild
      The welcome screen of the Guild.
      This will be null if the Guild has no welcome screen, or if the invite came from a GuildInviteCreateEvent.
      Specified by:
      getWelcomeScreen in interface Invite.Guild
      Returns:
      The welcome screen of this Guild or null
    • toString

      public String toString()
      Overrides:
      toString in class Object