releases.shpreview

v3.10.0

version 3.10.0

$npx -y @buildinternet/releases show rel_nbifPHlqgedz_Gm0QbKE3

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

Fetched April 3, 2026