Interface IAgeRestrictedChannel
- All Superinterfaces:
Channel
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,IMentionable
,ISnowflake
- All Known Subinterfaces:
ForumChannel
,MediaChannel
,NewsChannel
,StageChannel
,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.channel.Channel
MAX_NAME_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.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.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getType
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.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
-