Releases: soxtoby/SlackNet
Releases · soxtoby/SlackNet
v0.6.1
v0.6.0
- Support for Views (both modals and app home).
- Easier integration with Azure Functions.
- Upgraded to
System.Reactive
v4.
Breaking Changes
SlackNet
andSlackNet.Bot
now require .NET Standard 2.0.SlackEventsMiddleware
is no longer available.EventCallback
andUrlVerification
now inherit fromEventRequest
instead ofEvent
.- Removed deprecated
MessageEvent.Replies
property.
Thank you to @casperOne for contributing to this release 🎉.
v0.5.0
- Added missing
PostMessage
andGetPermalink
methods toIChatApi
. - Requests can now be validated with a signing secret in
SlackNet.AspNetCore
. - Fixed
OAuthApi.Access
'sredirect_uri
request argument. - Sending a message or replying to a message via
SlackBot
can now be cancelled (if the message hasn't already been sent). - Errors that occur while sending messages via
SlackBot
are now exposed to user code instead of being swallowed. - Messages from bots received by
SlackBot
have theirUser
property populated correctly. - Added
SlackBot.GetBotUserById
. - Fixed enum serialization error messages.
- Added
RemoteFilesApi
. - Added
ChannelShared
andChannelUnshared
events. - Added
RichTextBlock
. - Added multi-select block elements.
Breaking Changes
- Removed deprecated pins and reactions methods dealing with files and file comments.
Thank you 🙏 to @eFloh, @mrmurb, @taskbit, and @Silvenga for their help with this release.
v0.4.0
- Switching to POST requests for API methods that Slack prefers POST for, allowing for larger requests with more content.
ISlackApiClient
exposes two newPost
methods that POST theirargs
in the body of the request.
Breaking Changes
- The
IHttp
interface now provides a singleExecute
method that takes in aHttpRequestMessage
, rather than separateGet
andPost
methods.
v0.3.1
v0.3.0
- Full support for message blocks.
SlackNet.AspNetCore
allows registering handlers for block actions and providing options toexternal_select
block elements.- Added some registration method overloads to
SlackNet.AspNetCore
to allow more flexibility. - Fixed
DateTime
properties, which were alwaysnull
. RegisterDialogSubmissionHandler
correctly registers the handler without requiring an extra manual registration.
Breaking Changes
Attachment.Ts
is now nullable to allow sending attachments with blocks.IMessageActionHandler.Handle
no longer returns aMessageActionResponse
, which didn't work anyway.MessageActionResponse
has been removed.InteractionRequest.CallbackId
property pushed down to old sub-types, since the newBlockActionRequest
doesn't have it.DialogElement.Type
is now astring
, to allow extension if necessary. TheDialogElementType
enum has been removed.
v0.2.0
- Updated existing APIs.
- Added support for message actions.
- Added support for handling dialog cancellation.
- Added methods to
SlackRtmClient
to subscribe to and query for user presence events. - Fixed a bunch of deserialization failures caused by missing getters (thanks to @eFloh for picking this up).
- Fixed typing of
ConversationsApi.Open
. SlackBot
correctly setsHub
on incoming IMs.
Breaking Changes:
ConversationsApi.Open
takes in achannelId
oruserIds
, and only returns a channel ID.ConversationsApi.Open
no longer takes inreturnIm
. UseConversationsApi.OpenAndReturnInfo
instead.- Removed
UsersApi.List
'spresence
parameter, as it is no longer supported. - Removed
UsersApi.SetActive
method, as it is no longer supported. - Most file events now only contain a file ID instead of a whole file, since that's what Slack sends.
FileShare
messages contain aFiles
list instead of a singleFile
.- Removed
FileCommentsApi
'sAdd
andEdit
methods, as they are no longer supported. IDialogSubmissionHandler
must now implementHandleCancel
. Just returnTask.CompletedTask
if you don't care about cancelled dialogs.DndApi.TeamInfo
'suserIds
parameter is now required.- With the addition of
MessageAction
support, there are a few "Action"-related renames:- Renamed
ISlackActions
toISlackInteractiveMessages
. - Renamed
IActionHandler
toIInteractiveMessageHandler
. - Renamed
SlackServiceConfiguration.RegisterActionHandler
toRegisterInteractiveMessageHandler
.
- Renamed