Interface IAgeRestrictedChannel

All Superinterfaces:
Channel, Comparable<GuildChannel>, Formattable, GuildChannel, IDetachableEntity, IMentionable, ISnowflake
All Known Subinterfaces:
ForumChannel, ForumChannelMixin<T>, IAgeRestrictedChannelMixin<T>, MediaChannel, MediaChannelMixin<T>, NewsChannel, NewsChannelMixin<T>, StageChannel, StageChannelMixin<T>, StandardGuildMessageChannel, StandardGuildMessageChannelMixin<T>, TextChannel, TextChannelMixin<T>, VoiceChannel, VoiceChannelMixin<T>
All Known Implementing Classes:
AbstractStandardGuildMessageChannelImpl, DetachedForumChannelImpl, DetachedMediaChannelImpl, DetachedNewsChannelImpl, DetachedStageChannelImpl, DetachedTextChannelImpl, DetachedVoiceChannelImpl, ForumChannelImpl, MediaChannelImpl, NewsChannelImpl, StageChannelImpl, TextChannelImpl, VoiceChannelImpl

public interface IAgeRestrictedChannel extends GuildChannel
Channels which can be set to age-restricted.
These channels only allow users with a verified mature age to participate.
  • 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