Interface IAgeRestrictedChannelManager<T extends IAgeRestrictedChannel,M extends IAgeRestrictedChannelManager<T,M>>

Type Parameters:
T - The channel type
M - The manager type
All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<T,M>, Manager<M>, RestAction<Void>
All Known Subinterfaces:
ForumChannelManager, MediaChannelManager, NewsChannelManager, StageChannelManager, StandardGuildMessageChannelManager<T,M>, TextChannelManager, VoiceChannelManager

public interface IAgeRestrictedChannelManager<T extends IAgeRestrictedChannel,M extends IAgeRestrictedChannelManager<T,M>> extends ChannelManager<T,M>
Manager abstraction to set whether a channel is NSFW or Age-Restricted.
  • Method Details

    • setNSFW

      @Nonnull @CheckReturnValue M setNSFW(boolean nsfw)
      Sets the nsfw flag (also known as Age Restriction) of the selected channel.
      Parameters:
      nsfw - The new nsfw flag for the selected channel.
      Returns:
      ChannelManager for chaining convenience