Class: Twitch::WhispersResource
- Defined in:
- lib/twitch/resources/whispers.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Twitch::Resource
Instance Method Details
#create(from_user_id:, to_user_id:, message:) ⇒ Object
3 4 5 |
# File 'lib/twitch/resources/whispers.rb', line 3 def create(from_user_id:, to_user_id:, message:) post_request("whispers", body: { from_user_id: from_user_id, to_user_id: to_user_id, message: }) end |