New Features
All argument supports in WebClient
/ AsyncWebClient
Since this version, all the methods in WebClient
/ AsyncWebClient
have not only required arguments but also all possible ones in the method signature for better developer experience. Refer to the pull request enabling this #1099 for details.
Easier way to test if a key exists in a Web API response
Now that SlackResponse
/ AsyncSlackResponse
now have __contains__
method, you can test if a key exists in WebClient responses. Refer to the pull request enabling this #1104 for details.
token = "xoxb-"
response = WebClient(token).auth_test()
"error" in response # True / False
Changes
- #1099 Fix #1018 Add optional arguments in WebClient methods - Thanks @seratch
- #1104 Fix #1102 Add
__contains__
method in slack_sdk.web.SlackResponse / AsyncSlackResponse - Thanks @seratch - #1097 Fix #1056 by changing the default type for Option values - Thanks @weallwegot @seratch
- #1096 Fix #1095 by correcting
ContextBlock
element type hint - Thanks @uroboro @seratch - #1103 Fix #1100 by improving the
get
/__getitem__
method behavior when response body is empty - Thanks @janeliang0522 @seratch - #1105 Update the entity name in metadata / documents - Thanks @seratch
- All issues/pull requests: https://github.com/slackapi/python-slack-sdk/milestone/41?closed=1
- All changes: v3.9.1...v3.10.0