Interface IAgeRestrictedChannel
- All Superinterfaces:
Channel
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,IMentionable
,ISnowflake
- All Known Subinterfaces:
NewsChannel
,StandardGuildMessageChannel
,TextChannel
,VoiceChannel
Channels which can be set to age-restricted.
These channels only allow users with a verified mature age to participate.
These channels only allow users with a verified mature age to participate.
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.GuildChannel
JUMP_URL
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isNSFW()
Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)Methods inherited from interface net.dv8tion.jda.api.entities.Channel
formatTo, getAsMention, getJDA, getName, getType
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.GuildChannel
delete, getGuild, getJumpUrl, getManager, getPermissionContainer
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
isNSFW
boolean isNSFW()Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)- Returns:
- True, If this channel is age-restricted by the official Discord Client
-