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

socketmode example: use embedded api client in socketmode client #1164

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

kittydoor
Copy link

The socketmode example in its current version is confusing for new users. Although a new socketmode client embeds the provided api client into itself, thus inheriting all methods, the example uses the earlier defined api to call said command. This gives the impression that you need to still keep the original client.

One could even go further by creating the api inline with the socketmode client.

To be honest, elaborating a bit more on the socketmode example would be helpful (or at least would've been helpful to me when I first started using it), but that's out of scope for this tiny PR.

Also, accidentally fixed a small formatting error.

@kanata2 kanata2 added needs review example about example codes labels Apr 7, 2023
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.

👍

@kanata2 kanata2 merged commit c4095cb into slack-go:master Apr 15, 2023
bigbombbang pushed a commit to bigbombbang/myslack that referenced this pull request May 8, 2023
socketmode example: use embedded api client in socketmode client
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