We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0db0587 + dd1be4b commit 0c16ec5Copy full SHA for 0c16ec5
1 file changed
slackclient/slackrequest.py
@@ -88,8 +88,8 @@ def do(self, token, request="?", post_data=None, domain="slack.com", timeout=Non
88
if isinstance(post_data[field], list):
89
post_data[field] = ",".join(post_data[field])
90
91
- # Convert any params which aren't integer, string or bool to JSON
92
- # Example: `attachments` is a dict
+ # Convert any params which are list-like to JSON strings
+ # Example: `attachments` is a dict, and needs to be passed as JSON
93
for k, v in six.iteritems(post_data):
94
if isinstance(v, (list, dict)):
95
post_data[k] = json.dumps(v)
0 commit comments