Class TemplateGuild
java.lang.Object
net.dv8tion.jda.api.entities.templates.TemplateGuild
- All Implemented Interfaces:
- ISnowflake
POJO for the guild information provided by a template.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionTemplateGuild(long id, String name, String description, String iconId, Guild.VerificationLevel verificationLevel, Guild.NotificationLevel notificationLevel, Guild.ExplicitContentLevel explicitContentLevel, DiscordLocale locale, Guild.Timeout afkTimeout, TemplateChannel afkChannel, TemplateChannel systemChannel, List<TemplateRole> roles, List<TemplateChannel> channels) 
- 
Method SummaryModifier and TypeMethodDescriptionProvides theTemplateChannelthat has been set as the channel whichMemberswill be moved to after they have been inactive in aVoiceChannelfor longer thangetAfkTimeout().Returns theAFK Timeoutfor this guild.@Unmodifiable List<TemplateChannel>Returns theNotificationLevelof this guild.The description for this guild.Returns theExplicitContentLevelof this guild.getIcon()Returns anImageProxyfor this template guild's icon.The icon id of this guild.The icon url of this guild.longThe Snowflake id of this entity.The preferred locale for this guild.getName()The name of this guild.@Unmodifiable List<TemplateRole>getRoles()Provides theTemplateChannelthat has been set as the channel which newly joinedMemberswill be announced in.Returns theVerificationLevelof this guild.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflakegetId, getTimeCreated
- 
Constructor Details- 
TemplateGuildpublic TemplateGuild(long id, String name, String description, String iconId, Guild.VerificationLevel verificationLevel, Guild.NotificationLevel notificationLevel, Guild.ExplicitContentLevel explicitContentLevel, DiscordLocale locale, Guild.Timeout afkTimeout, TemplateChannel afkChannel, TemplateChannel systemChannel, List<TemplateRole> roles, List<TemplateChannel> channels) 
 
- 
- 
Method Details- 
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.
 
- 
getNameThe name of this guild.- Returns:
- The guild's name
 
- 
getDescriptionThe description for this guild.
 This is displayed in the server browser below the guild name for verified guilds.- Returns:
- The description
 
- 
getIconIdThe icon id of this guild.- Returns:
- The guild's icon id
- See Also:
 
- 
getIconUrlThe icon url of this guild.- Returns:
- The guild's icon url
- See Also:
 
- 
getIconReturns anImageProxyfor this template guild's icon.- Returns:
- Possibly-null ImageProxyof this template guild's icon
- See Also:
 
- 
getVerificationLevelReturns theVerificationLevelof this guild.- Returns:
- the verification level of the guild
 
- 
getDefaultNotificationLevelReturns theNotificationLevelof this guild.- Returns:
- the notification level of the guild
 
- 
getExplicitContentLevelReturns theExplicitContentLevelof this guild.- Returns:
- the explicit content level of the guild
 
- 
getLocaleThe preferred locale for this guild.- Returns:
- The preferred DiscordLocalefor this guild
 
- 
getAfkTimeoutReturns theAFK Timeoutfor this guild.- Returns:
- the afk timeout for this guild
 
- 
getAfkChannelProvides 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.
 
- 
getSystemChannelProvides 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- Returns:
- An immutable List of Roles.
 
- 
getChannels- Returns:
- An immutable List of Channels.
 
 
-