Original RFC: #384
v2 PR: #394
New Features
- Client Decomposition: We’ve split the client into two.
- WebClient: A HTTP client focused on Slack's Web API.
- RTMClient: A websocket client focused on Slack's RTM API.
- RTMClient: Completely redesigned, this client allows you to link your application's callbacks to corresponding Slack events.
- WebClient: The WebClient now provides built-in methods for Slack's Web API. These methods act as helpers enabling you to focus less on how the request is constructed. Here are a few things that this provides:
- Basic information about each method through the docstring.
- Easy File Uploads: You can now pass in the location of a file and the library will handle opening and retrieving the file object to be transmitted.
- Token type validation: This gives you better error messaging when you're attempting to consume an api method that your token doesn't have access to.
- Constructs requests using Slack's preferred HTTP methods and content-types.
Breaking Changes:
If you're migrating from v1.x of slackclient to v2.x, Please follow our migration guide to ensure your app continues working after updating.