Skip to content

Commit df55955

Browse files
committed
[v5] update chat, descriptive function naming
1 parent 3df7111 commit df55955

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

resources/lib/twitch/api/v5/chat.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88

99
@query
10-
def emoticons_by_set(emotesets=list()):
10+
def get_emoticons_by_set(emotesets=None):
1111
q = Qry('chat/emoticon_images')
12-
q.add_param(keys.EMOTESETS, emotesets, list())
12+
q.add_param(keys.EMOTESETS, emotesets, None)
1313
return q
1414

1515

1616
@query
17-
def badges(name):
18-
q = Qry('chat/{channel}/badges')
19-
q.add_urlkw(keys.CHANNEL, name)
17+
def get_badges_by_channel(channel_id):
18+
q = Qry('chat/{channel_id}/badges')
19+
q.add_urlkw(keys.CHANNEL_ID, channel_id)
2020
return q
2121

2222

2323
@query
24-
def emoticons():
24+
def get_all_emoticons():
2525
q = Qry('chat/emoticons')
2626
return q

0 commit comments

Comments
 (0)