api: Fix add_reaction method to pass reaction_data.

Also correct the example usage text.
This commit is contained in:
neiljp (Neil Pilgrim) 2019-02-15 20:23:46 -08:00 committed by showell
parent 6368b63e6c
commit 47f9b103ab

View file

@ -824,7 +824,7 @@ class Client(object):
'''
Example usage:
>>> client.add_emoji_reaction({
>>> client.add_reaction({
'message_id': '100',
'emoji_name': 'joy',
'emoji_code': '1f602',
@ -835,6 +835,7 @@ class Client(object):
return self.call_endpoint(
url='messages/{}/reactions'.format(reaction_data['message_id']),
method='POST',
request=reaction_data,
)
def remove_reaction(self, reaction_data):