Class TemplateGuild

  • All Implemented Interfaces:
    ISnowflake

    public class TemplateGuild
    extends java.lang.Object
    implements ISnowflake
    POJO for the guild information provided by a template.
    See Also:
    Template.getGuild()
    • Method Detail

      • 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 java.lang.String getName()
        The name of this guild.
        Returns:
        The guild's name
      • getDescription

        @Nullable
        public java.lang.String getDescription()
        The description for this guild.
        This is displayed in the server browser below the guild name for verified guilds.
        Returns:
        The description
      • getRegion

        @Nonnull
        @Deprecated
        @ForRemoval(deadline="5.0.0")
        public Region getRegion()
        Deprecated.
        Guilds no longer have the Region option. Use VoiceChannel.getRegion() instead.
        The Voice Region that this Guild is using for audio connections.
        If the Region is not recognized, this returns UNKNOWN but you can still use the getRegionRaw() to retrieve the raw name this region has.
        Returns:
        The the audio Region this Guild is using for audio connections. Can return Region.UNKNOWN.
      • getRegionRaw

        @Nonnull
        @Deprecated
        @ForRemoval(deadline="5.0.0")
        public java.lang.String getRegionRaw()
        Deprecated.
        Guilds no longer have the Region option. Use VoiceChannel.getRegion() instead.
        The raw voice region name that this Guild is using for audio connections.
        This is resolved to an enum constant of Region by getRegion()!
        Returns:
        Raw region name
      • getIconId

        @Nullable
        public java.lang.String getIconId()
        The icon id of this guild.
        Returns:
        The guild's icon id
        See Also:
        getIconUrl()
      • getIconUrl

        @Nullable
        public java.lang.String getIconUrl()
        The icon url of this guild.
        Returns:
        The guild's icon url
        See Also:
        getIconId()
      • getLocale

        @Nonnull
        public java.util.Locale getLocale()
        The preferred locale for this guild.
        Returns:
        The preferred Locale for this guild
      • getAfkTimeout

        @Nonnull
        public Guild.Timeout getAfkTimeout()
        Returns the AFK Timeout for this guild.
        Returns:
        the afk timeout for this guild
      • getSystemChannel

        @Nullable
        public TemplateChannel getSystemChannel()
        Provides the TemplateChannel that has been set as the channel which newly joined Members will be announced in.
        If no channel has been set as the system channel, this returns null.
        Returns:
        Possibly-null TemplateChannel that is the system Channel.
      • getRoles

        @Nonnull
        public java.util.List<TemplateRole> getRoles()
        Gets all Roles in this Guild.
        Returns:
        An immutable List of Roles.