Class: Twitch::EmotesResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/twitch/resources/emotes.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

#channel(broadcaster_id:) ⇒ Object



3
4
5
6
# File 'lib/twitch/resources/emotes.rb', line 3

def channel(broadcaster_id:)
  response = get_request("chat/emotes", params: { broadcaster_id: broadcaster_id })
  Collection.from_response(response, type: Emote)
end

#globalObject



8
9
10
11
# File 'lib/twitch/resources/emotes.rb', line 8

def global
  response = get_request("chat/emotes/global")
  Collection.from_response(response, type: Emote)
end

#sets(emote_set_id:) ⇒ Object



13
14
15
16
# File 'lib/twitch/resources/emotes.rb', line 13

def sets(emote_set_id:)
  response = get_request("chat/emotes/set", params: { emote_set_id: emote_set_id })
  Collection.from_response(response, type: Emote)
end