Interface IAgeRestrictedChannel
- All Superinterfaces:
Channel, Comparable<GuildChannel>, Formattable, GuildChannel, IDetachableEntity, 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 Channel
MAX_NAME_LENGTHFields inherited from interface GuildChannel
JUMP_URL -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNSFW()Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)Methods inherited from interface Channel
formatTo, getAsMention, getFlags, getFlagsRaw, getJDA, getName, getType, isObfuscatedMethods inherited from interface Comparable
compareToMethods inherited from interface GuildChannel
delete, getGuild, getJumpUrl, getManager, getPermissionContainerMethods inherited from interface IDetachableEntity
isDetachedMethods inherited from interface 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
-