Class TemplateGuild
- java.lang.Object
- 
- net.dv8tion.jda.api.entities.templates.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()
 
- 
- 
Constructor SummaryConstructors Constructor Description TemplateGuild(long id, java.lang.String name, java.lang.String description, java.lang.String region, java.lang.String iconId, Guild.VerificationLevel verificationLevel, Guild.NotificationLevel notificationLevel, Guild.ExplicitContentLevel explicitContentLevel, java.util.Locale locale, Guild.Timeout afkTimeout, TemplateChannel afkChannel, TemplateChannel systemChannel, java.util.List<TemplateRole> roles, java.util.List<TemplateChannel> channels)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TemplateChannelgetAfkChannel()Provides theTemplateChannelthat has been set as the channel whichMemberswill be moved to after they have been inactive in aVoiceChannelfor longer thangetAfkTimeout().Guild.TimeoutgetAfkTimeout()Returns theAFK Timeoutfor this guild.java.util.List<TemplateChannel>getChannels()Guild.NotificationLevelgetDefaultNotificationLevel()Returns theNotificationLevelof this guild.java.lang.StringgetDescription()The description for this guild.Guild.ExplicitContentLevelgetExplicitContentLevel()Returns theExplicitContentLevelof this guild.java.lang.StringgetIconId()The icon id of this guild.java.lang.StringgetIconUrl()The icon url of this guild.longgetIdLong()The Snowflake id of this entity.java.util.LocalegetLocale()The preferred locale for this guild.java.lang.StringgetName()The name of this guild.RegiongetRegion()Deprecated.Guilds no longer have theRegionoption.java.lang.StringgetRegionRaw()Deprecated.Guilds no longer have theRegionoption.java.util.List<TemplateRole>getRoles()TemplateChannelgetSystemChannel()Provides theTemplateChannelthat has been set as the channel which newly joinedMemberswill be announced in.Guild.VerificationLevelgetVerificationLevel()Returns theVerificationLevelof this guild.- 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflakegetId, getTimeCreated
 
- 
 
- 
- 
- 
Constructor Detail- 
TemplateGuildpublic TemplateGuild(long id, java.lang.String name, java.lang.String description, java.lang.String region, java.lang.String iconId, Guild.VerificationLevel verificationLevel, Guild.NotificationLevel notificationLevel, Guild.ExplicitContentLevel explicitContentLevel, java.util.Locale locale, Guild.Timeout afkTimeout, TemplateChannel afkChannel, TemplateChannel systemChannel, java.util.List<TemplateRole> roles, java.util.List<TemplateChannel> channels)
 
- 
 - 
Method Detail- 
getIdLongpublic long getIdLong() Description copied from interface:ISnowflakeThe Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
- getIdLongin 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 theRegionoption. UseVoiceChannel.getRegion()instead.The VoiceRegionthat this Guild is using for audio connections.
 If the Region is not recognized, this returnsUNKNOWNbut you can still use thegetRegionRaw()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 theRegionoption. UseVoiceChannel.getRegion()instead.The raw voice region name that this Guild is using for audio connections.
 This is resolved to an enum constant ofRegionbygetRegion()!- 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()
 
 - 
getVerificationLevel@Nonnull public Guild.VerificationLevel getVerificationLevel() Returns theVerificationLevelof this guild.- Returns:
- the verification level of the guild
 
 - 
getDefaultNotificationLevel@Nonnull public Guild.NotificationLevel getDefaultNotificationLevel() Returns theNotificationLevelof this guild.- Returns:
- the notification level of the guild
 
 - 
getExplicitContentLevel@Nonnull public Guild.ExplicitContentLevel getExplicitContentLevel() Returns theExplicitContentLevelof this guild.- Returns:
- the explicit content level of the guild
 
 - 
getLocale@Nonnull public java.util.Locale getLocale() The preferred locale for this guild.- Returns:
- The preferred Localefor this guild
 
 - 
getAfkTimeout@Nonnull public Guild.Timeout getAfkTimeout() Returns theAFK Timeoutfor this guild.- Returns:
- the afk timeout for this guild
 
 - 
getAfkChannel@Nullable public TemplateChannel getAfkChannel() Provides theTemplateChannelthat has been set as the channel whichMemberswill be moved to after they have been inactive in aVoiceChannelfor longer thangetAfkTimeout().
 If no channel has been set as the AFK channel, this returnsnull.- Returns:
- Possibly-null TemplateChannelthat is the AFK Channel.
 
 - 
getSystemChannel@Nullable public TemplateChannel getSystemChannel() Provides theTemplateChannelthat has been set as the channel which newly joinedMemberswill be announced in.
 If no channel has been set as the system channel, this returnsnull.- Returns:
- Possibly-null TemplateChannelthat is the system Channel.
 
 - 
getRoles@Nonnull public java.util.List<TemplateRole> getRoles() - Returns:
- An immutable List of Roles.
 
 - 
getChannels@Nonnull public java.util.List<TemplateChannel> getChannels() - Returns:
- An immutable List of Channels.
 
 
- 
 
-