lib/snoo/subreddits.rb
def subreddit_settings subreddit, opts = {}
      logged_in?
      params = {
        type: 'public',
        link_type: 'any',
        lang: 'en',
        r: subreddit,
        uh: @modhash,
        allow_top: true,
        show_media: true,
        over_18: false,
        api_type: 'json'
      }
      params.merge! opts
      post('/api/site_admin', body: params)
    end
def subreddit_settings subreddit, opts = {}
      logged_in?
      params = {
        type: 'public',
        link_type: 'any',
        lang: 'en',
        r: subreddit,
        uh: @modhash,
        allow_top: true,
        show_media: true,
        over_18: false,
        api_type: 'json'
      }
      params.merge! opts
      post('/api/site_admin', body: params)
    end
@todo test if every param is actually required
 Sets subreddit settings.

 @param (see #delete_header)
 @param (see LinksComments#info)
 @option opts [String] :title The subreddit's title
 @option opts [String] :public_description The subreddit's public description
 @option opts [String] :description The subreddit's sidebar
 @option opts [String] :lang (en) The default language. ISO language code
 @option opts [public, private, restricted] :type (public) The subreddits type
 @option opts [any, link, self] :link_type (any) The type of posts allowed on this subreddit
 @option opts [true, false] :allow_top (true) Allow this subreddit to appear on the front page
 @option opts [true, false] :show_media (true) show thumbnails and media embeds
 @option opts [String] :header-title The header mouse-over text
 @option opts [true, false] :over_18 (false) If the subreddit requires over 18 access
 @return (see #clear_sessions)