Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanation how the message could be sent in a proper way #787

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

descholar-ceo
Copy link
Contributor

@descholar-ceo descholar-ceo commented Aug 20, 2020

What does this PR do?

  • It adds a concise way of how a bot would post a message to the user as a user, not as a default slackbot (examples/messages/messages.go)

  • It fixes #785

Add slack.MsgOptionAsUser(true) to the api.PostMessage so that the route of response will come from the bot itself
Copy link
Member

@kanata2 kanata2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kanata2 kanata2 merged commit 7a67a6a into slack-go:master Aug 20, 2020
@kanata2 kanata2 added the example about example codes label Aug 20, 2020
@kanata2 kanata2 added this to the v0.7.0 milestone Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example about example codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants