HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
115 stars 53 forks source link

Don't serialize an absent value on as_user API option #152

Closed PaigingAlyssa closed 4 years ago

PaigingAlyssa commented 4 years ago

Slack has updated their API for V2 apps, and the as_user option will be rejected by V2 apps trying to use it. We can simply not serialize this field if it is not set, since it is optional.

To see more about Authorship https://api.slack.com/methods/chat.postMessage#authorship