This PR adds a deprecation warning for usage of the as_user argument in calls to chat.postMessage, allows the user to see failed Slack API deprecated_argument responses, and facilitates usage of the new Slack authorship customization arguments username, icon_url, and icon_emoji using optional keyword arguments (See: https://api.slack.com/methods/chat.postMessage#authorship)
as_user will still be passed on to the slack request and will still fail if the user passes in as_user=False, but the user should see more information in the failed response now.
Addresses #741
This PR adds a deprecation warning for usage of the
as_user
argument in calls tochat.postMessage
, allows the user to see failed Slack APIdeprecated_argument
responses, and facilitates usage of the new Slack authorship customization argumentsusername
,icon_url
, andicon_emoji
using optional keyword arguments (See: https://api.slack.com/methods/chat.postMessage#authorship)as_user
will still be passed on to the slack request and will still fail if the user passes inas_user=False
, but the user should see more information in the failed response now.