Skip to content

Releases: soxtoby/SlackNet

v0.6.1

11 Mar 01:45
Compare
Choose a tag to compare

Forcing TLS 1.2 for websocket connections

v0.6.0

08 Mar 05:25
Compare
Choose a tag to compare
  • Support for Views (both modals and app home).
  • Easier integration with Azure Functions.
  • Upgraded to System.Reactive v4.

Breaking Changes

  • SlackNet and SlackNet.Bot now require .NET Standard 2.0.
  • SlackEventsMiddleware is no longer available.
  • EventCallback and UrlVerification now inherit from EventRequest instead of Event.
  • Removed deprecated MessageEvent.Replies property.

Thank you to @casperOne for contributing to this release 🎉.

v0.5.0

03 Jan 01:32
Compare
Choose a tag to compare
  • Added missing PostMessage and GetPermalink methods to IChatApi.
  • Requests can now be validated with a signing secret in SlackNet.AspNetCore.
  • Fixed OAuthApi.Access's redirect_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 their User property populated correctly.
  • Added SlackBot.GetBotUserById.
  • Fixed enum serialization error messages.
  • Added RemoteFilesApi.
  • Added ChannelShared and ChannelUnshared 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

26 Aug 12:07
34d9d1b
Compare
Choose a tag to compare
  • Switching to POST requests for API methods that Slack prefers POST for, allowing for larger requests with more content.
  • ISlackApiClient exposes two new Post methods that POST their args in the body of the request.

Breaking Changes

  • The IHttp interface now provides a single Execute method that takes in a HttpRequestMessage, rather than separate Get and Post methods.

v0.3.1

26 Aug 11:56
Compare
Choose a tag to compare

Fixing deserialization of UserProfiles where the user has modified their profile, but hasn't filled in any custom fields.

v0.3.0

24 Jun 12:23
Compare
Choose a tag to compare
  • Full support for message blocks.
  • SlackNet.AspNetCore allows registering handlers for block actions and providing options to external_select block elements.
  • Added some registration method overloads to SlackNet.AspNetCore to allow more flexibility.
  • Fixed DateTime properties, which were always null.
  • 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 a MessageActionResponse, which didn't work anyway. MessageActionResponse has been removed.
  • InteractionRequest.CallbackId property pushed down to old sub-types, since the new BlockActionRequest doesn't have it.
  • DialogElement.Type is now a string, to allow extension if necessary. The DialogElementType enum has been removed.

v0.2.0

26 May 09:36
Compare
Choose a tag to compare
  • 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 sets Hub on incoming IMs.

Breaking Changes:

  • ConversationsApi.Open takes in a channelId or userIds, and only returns a channel ID.
  • ConversationsApi.Open no longer takes in returnIm. Use ConversationsApi.OpenAndReturnInfo instead.
  • Removed UsersApi.List's presence 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 a Files list instead of a single File.
  • Removed FileCommentsApi's Add and Edit methods, as they are no longer supported.
  • IDialogSubmissionHandler must now implement HandleCancel. Just return Task.CompletedTask if you don't care about cancelled dialogs.
  • DndApi.TeamInfo's userIds parameter is now required.
  • With the addition of MessageAction support, there are a few "Action"-related renames:
    • Renamed ISlackActions to ISlackInteractiveMessages.
    • Renamed IActionHandler to IInteractiveMessageHandler.
    • Renamed SlackServiceConfiguration.RegisterActionHandler to RegisterInteractiveMessageHandler.

v0.1.10

02 Jan 06:14
Compare
Choose a tag to compare
  • Added AspNetCore project with endpoints for events and interactive messages
  • Added Conversations API
  • Added Dialog API
  • Added some other missing API methods
  • Fixed a bunch of issues caused by typos

v0.1.9

25 Dec 02:50
Compare
Choose a tag to compare
  • RTM client has better reconnection logic and doesn't drop events after an error
  • Updated dependencies - no longer prerelease!