Class: WhopSDK::Models::ChatChannelUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/chat_channel_update_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(ban_media: nil, ban_urls: nil, banned_words: nil, user_posts_cooldown_seconds: nil, who_can_post: nil, who_can_react: nil, request_options: {}) ⇒ Object

Parameters:

  • ban_media (Boolean, nil) (defaults to: nil)

    Whether media uploads are banned in this chat

  • ban_urls (Boolean, nil) (defaults to: nil)

    Whether URLs are banned in this chat

  • banned_words (Array<String>, nil) (defaults to: nil)

    List of banned words for this chat

  • user_posts_cooldown_seconds (Integer, nil) (defaults to: nil)

    The cooldown period in seconds between user posts

  • who_can_post (Symbol, WhopSDK::Models::WhoCanPost, nil) (defaults to: nil)

    Who can post on a chat feed

  • who_can_react (Symbol, WhopSDK::Models::WhoCanReact, nil) (defaults to: nil)

    Who can react on a chat feed

  • request_options (WhopSDK::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 46

Instance Attribute Details

#ban_mediaBoolean?

Whether media uploads are banned in this chat

Returns:

  • (Boolean, nil)


14
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 14

optional :ban_media, WhopSDK::Internal::Type::Boolean, nil?: true

#ban_urlsBoolean?

Whether URLs are banned in this chat

Returns:

  • (Boolean, nil)


20
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 20

optional :ban_urls, WhopSDK::Internal::Type::Boolean, nil?: true

#banned_wordsArray<String>?

List of banned words for this chat

Returns:

  • (Array<String>, nil)


26
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 26

optional :banned_words, WhopSDK::Internal::Type::ArrayOf[String], nil?: true

#user_posts_cooldown_secondsInteger?

The cooldown period in seconds between user posts

Returns:

  • (Integer, nil)


32
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 32

optional :user_posts_cooldown_seconds, Integer, nil?: true

#who_can_postSymbol, ...

Who can post on a chat feed

Returns:



38
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 38

optional :who_can_post, enum: -> { WhopSDK::WhoCanPost }, nil?: true

#who_can_reactSymbol, ...

Who can react on a chat feed

Returns:



44
# File 'lib/whop_sdk/models/chat_channel_update_params.rb', line 44

optional :who_can_react, enum: -> { WhopSDK::WhoCanReact }, nil?: true