Class: WhopSDK::Models::ChatMessageCreatedWebhookEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/chat_message_created_webhook_event.rb,
sig/whop_sdk/models/chat_message_created_webhook_event.rbs

Overview

See Also:

  • WhopSDK::Models::ChatMessageCreatedWebhookEvent#data

Defined Under Namespace

Classes: Audience, Channel

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(audience:, channel:, message:, reason:) ⇒ Object

Parameters:



# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 77

Instance Attribute Details

#audienceWhopSDK::Models::ChatMessageCreatedWebhookEvent::Data::Audience

Parameters:

  • value (WhopSDK::ChatMessageCreatedWebhookEvent::Data::Audience)

Returns:



59
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 59

required :audience, -> { WhopSDK::ChatMessageCreatedWebhookEvent::Data::Audience }

#channelWhopSDK::Models::ChatMessageCreatedWebhookEvent::Data::Channel

Parameters:

  • value (WhopSDK::ChatMessageCreatedWebhookEvent::Data::Channel)

Returns:



64
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 64

required :channel, -> { WhopSDK::ChatMessageCreatedWebhookEvent::Data::Channel }

#messageWhopSDK::Models::Message

A message sent within an experience chat, direct message, or group chat.

Parameters:

Returns:



70
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 70

required :message, -> { WhopSDK::Message }

#reasonString

Parameters:

  • value (String)

Returns:

  • (String)


75
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 75

required :reason, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 109

Instance Method Details

#to_hash{

Returns:

  • ({)


68
# File 'sig/whop_sdk/models/chat_message_created_webhook_event.rbs', line 68

def to_hash: -> {