Skip to content

Releases: soxtoby/SlackNet

v0.16.2

13 Jul 02:12

Choose a tag to compare

  • Fewer dependencies on .NET 8 and above.
  • Added AuthApi.TeamsList method.
  • Fixed an InvalidOperationException error that occurred when a web socket connection was closed after another error.

Thankyou to @Hawxy and @ynaftali-island for their contributions to this release 🥳

v0.16.1

01 Apr 23:25

Choose a tag to compare

  • Fixed web socket reconnection when Slack closes the connection.

v0.16.0

15 Mar 01:35

Choose a tag to compare

This release replaces the web socket implementation, which should fix socket mode in .NET Framework.

Breaking changes

  • Replaced WebSocket4Net dependency with System.Net.WebSockets.
  • WebSocketWrapper constructor now takes in a System.Net.WebSockets ClientWebSocket and uri string.
  • IWebSocket.Send now returns a Task.
  • ICoreSocketModeClient.Send now returns a Task.

v0.15.5

08 Feb 23:23

Choose a tag to compare

  • Added Expand property to SectionBlock.
  • Added MarkdownBlock type.

v0.15.4

11 Jan 03:24

Choose a tag to compare

  • Added includeAllMetadata parameter to ConversationsApi.Replies.
  • Removed Microsoft.AspNetCore.Mvc.Abstractions dependency from SlackNet.AspNetCore and added it to SlackNet.AzureFunctions.

v0.15.3

14 Dec 22:51

Choose a tag to compare

  • Fixed issue where calling FilesApi.CompleteUploadExternal manually would flip the threadTs and initialComment arguments.

v0.15.2

17 Nov 00:28

Choose a tag to compare

  • Fixing the name of OpenIdApi.Token's redirect_uri parameter.
  • Assistants API support.
    • Added AssistantThreadStarted and AssistantThreadContextChanged events.
    • Added AssistantThreadsApi with SetStatus, SetSuggestedPrompts, and SetTitle methods.
    • Added AssistantAppThread message event, which appears in MessageChanged events.
  • Added missing PreviousMessage property to MessageChanged event.

Thankyou to @brb3 for his help with this release 🛠️

v0.15.1

02 Nov 23:06

Choose a tag to compare

  • Added microseconds to DateTimes produced by the ToDateTime helper. This makes sorting messages by timestamp more reliable, but Ts strings should still be used to identify messages, rather than using DateTimes.

v0.15.0

12 Oct 01:46

Choose a tag to compare

Breaking changes

CancellationToken parameters are no longer nullable. They're still optional, so this should only affect code that was explicitly using CancellationToken?.

If you were previously passing in a nullable CancellationToken, I'd recommend null-coalescing to either default or CancellationToken.None.

If you were specifying the type in testing mocks, e.g. with Arg.Any<CancellationToken?>() or It.IsAny<CancellationToken?>(), simply remove the ?. If you were passing in null in tests, replace it with default or CancellationToken.None. If you were asserting that null was passed in as the cancellation token, it should be fine to assert on CancellationToken.None instead.

v0.14.0

25 Sep 03:23

Choose a tag to compare

  • Socket mode client (and RTM client) retry initial connection unless Slack returns an error response.
  • Improved logging around web socket connections.
  • UseSocketMode properly disconnects the socket mode client when app is shut down.
  • Rate-limited API request retries are cancelled immediately when cancellation is requested.

Breaking changes

  • SlackNet.AspNetCore now depends on Microsoft.Extensions.Hosting.Abstractions.
  • Deprecated Utils.RetryWithDelay - this was never meant to be public.
  • Simplified IWebSocket interface and made Open async.
  • Deprecated SlackEndpointConfiguration.SocketModeConnectionOptions setter - the options should be passed into UseSocketMode instead.