Class: Twitch::WhispersResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/twitch/resources/whispers.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

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: message })
end