@ CheckReturnValue public ChannelAction setNSFW ( boolean nsfw ) { if ( type != ChannelType . TEXT ) throw new UnsupportedOperationException ( "Can only set nsfw for a TextChannel!" ) ; this . nsfw = nsfw ; return this ; }
Sets the NSFW flag for the new TextChannel