- slack_api now provides async functions (enabled with "async" feature, on by default)
- slack_api::sync provides the original functions (enabled with "sync" feature)
Timestamp
type replaces all uses of string / u64 / f64 as timestamps
- Updates to API
- #68 Bot icons are sometimes an array
- request 0.10.0 using blocking client
- if you passed a
reqwest::Client
before you will need to passreqwest::blocking::Client
- if you passed a
- reqwest native-tls feature
- 2018 edition code
- Updates to API
- Missing fields from bot messages
- Bot messages can have attachments
- Optional Reqwest updated to 0.9.0
- Updates to API
- channel.priority is an f64
- Optional Reqwest updated to 0.8.5
- Updates to API to include fields mainly in user/user_profile and channel info
- Serde 1.0.0 breaking change, your serde must also be ~1.0.0
- Updates to API to include fields for "Threading messages" and a couple of other missing fields in messages
- Updates generated API definitions for the Slack API as of April 29
- Several additional error types were added across many API functions
- Several documentation fixes and updates
create
,join
andrename
had a newvalidate
field addedlist
had a newexclude_members
field added
unfurl
was added. See https://api.slack.com/methods/chat.unfurl
add
had thechannel
parameter removed
create
andrename
had a newvalidate
field added
open
had itsreturn_im
field change fromOption<&str>
toOption<bool>
list
had itsfull
field change fromOption<&str>
toOption<bool>
connect
was added. See https://api.slack.com/methods/rtm.connectstart
had itsno_unreads
andmpim_aware
fields change fromOption<&str>
toOption<bool>
start
had a newno_latest
field added
- This release adds a new top-level function:
default_client()
- This function can be used by users to get a default client that implements
SlackWebRequestSender
so they don't have to pull inreqwest
and version match in order to send requests. - Thanks to @bwasty for adding this in #42!
- This function can be used by users to get a default client that implements
- This release works around a Slack API bug causing deserialization issues
- Thanks to @dten for implementing the fix in #39!
- This release contains several breaking changes
hyper
has been replaced withreqwest
, but is still an optional dependency- All response fields are now considered optional to prevent this library from breaking if Slack removes them
- All methods now take in a request object (e.g.
PostMessageRequest
) instead of each parameter separately- This allows better clarity when calling the API as it simulates named params
- All request objects implement
Default
, so you can fill in the request with a..PostMessageRequest::default()
(or equivalent) to elide fields that are not being set
- All error types have been reworked to obtain better information from the Slack API about the issue
- Support added for most other Slack APIs, including
dnd
,usergroups
,mpim
, andfiles.comments
hyper
is now an optional (but default) feature that can be disabled to use a different HTTP client- The only change this requires is in error handling.
Error::Internal
andError::Http
are gone, andError::HttpRequest
has been added.Error
also no longer allows exhaustive checking to allow for future flexibility, though this limitation will be lifted before 1.0. - See the pull request for more information
- The only change this requires is in error handling.
hyper
dependency also bumped to version0.9.4
, if it's being used (thanks to @jgulotta)- Fixed several changes in the schema from the Slack API that would cause erroneous deserialization errors (thanks to @kiyoto)
- Removed
events
module. Now returned to slack crate. - Add missing
pub
fields on some returned response objects - Fix
api.test
method to not require a token to call
- Removed unused
Error::Utf8
- Removed
Error::Url
, panicing instead of returning anErr
on url parse failures due to no user input used
- Initial release – extracted from slack crate