andycmaj / react-chat-renderer

React JSX factory implementation for Slack
15 stars 0 forks source link

do not include `as_user` by default in message #33

Closed davemeyer closed 4 years ago

davemeyer commented 4 years ago

after migrating to slack's new auth flow and granular scopes (v2) https://api.slack.com/authentication/quickstart

the as_user param can no longer be used with bot tokens. they can only be used with user tokens. so we should not set this param by default. only set it if the user explicitly sets it. https://api.slack.com/methods/chat.postMessage