python-slack-sdk icon indicating copy to clipboard operation
python-slack-sdk copied to clipboard

Updating WebhookClient send method documentation

Open josealdaco opened this issue 4 years ago • 3 comments

While I was working on slack interactive messages I noticed that some of the arguments allowed in the documentation didn't match with what the class method allowed. For example the send method for WebhookClient class allows to pass the replace_original argument but isn't allowed with the most recent slack client package. send_dict solves this issue but documentation should be updated to reflect the updated changes to the WebhookClient method.

The page URLs

  • https://slack.dev/python-slack-sdk/api-docs/slack_sdk/webhook/client.html

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

josealdaco avatar Jul 27 '22 23:07 josealdaco

Hi @josealdaco! Thanks for bringing this to our attention. Without diving into it, I believe the documentation is generated from the class definitions themselves (@seratch can keep me honest here), so I assume that's what would need to be updated to reflect the change(s). But, regardless, this is now on our radar and we'll introduce a fix.

If you happen to be interested in taking this issue on yourself, do let us know and we can provide more information on how to go about doing so!

misscoded avatar Jul 28 '22 23:07 misscoded

Hi @josealdaco, which version of slack-sdk are you using?

Those arguments are supported since v3.2.1: https://github.com/slackapi/python-slack-sdk/pull/923 If you are using an older version, please upgrade to the latest version.

If you are using slackclient, we don't add any new features to the legacy one. Please consider migrating to slack-sdk v3. The migration should be pretty easy. Refer to the v3 migration guide for more details.

Also, since our module documents do not have versioning, the live site always shows the ones generated from the latest version of the SDK.

seratch avatar Jul 29 '22 00:07 seratch

I set my requirements to get the latest version but because of the renaming I was only getting 2.9.4. I'll go ahead and change the SDK name to get the latest version of V3, thanks for the clarification!

josealdaco avatar Aug 02 '22 21:08 josealdaco