SlackNet Versions Save

A comprehensive Slack API client for .NET

v0.10.7

1 year ago
  • Added optional teamId parameter to IConversationsApi.List

Thankyou to @jtsai-osa for this release 👍

v0.10.6

2 years ago
  • Added Subtype property back to MessageEvent, which was accidentally removed in the previous release.

v0.10.5

2 years ago
  • PlainText.Emoji is true by default to match Slack's default behaviour when the property isn't specified in the JSON.
  • Added MessageEventBase base class for AppMention & MessageEvent with common properties.
  • Added ExtraProperties property to Event to catch any information that Slack sends that doesn't have an existing property.
  • Added missing ClientMsgId and Team properties to MessageEventBase.
  • Added missing ChannelType property to MessageEvent. The format doesn't match other ChannelType properties, so I've left it as a string for now, rather than using the existing ChannelType enum.
  • Pulled the EventTs property found on many event types up to the Event base class.

v0.10.4

2 years ago
  • Added missing properties to OauthV2AccessResponse.
  • OAuthV2Api.Access doesn't include authorization header in request.

v0.10.3

2 years ago
  • Fixed content type of OAuthV2Api.Access.
  • Fixed endpoint for AppsEventsAuthorizationsApi.List and renamed API to AppsEventAuthorizations to match endpoint.
  • Added Slack documentation links to all API methds.

v0.10.2

2 years ago
  • Added AppUninstalled event content

Thankyou to @Kalissaac for this release 👍

v0.10.1

2 years ago
  • Fixing null ref in Http when making GET requests

v0.10.0

2 years ago
  • Added logging.
  • Added SlackRequestContext.Current to provide static access to the current request context. Current throws if not in a request context, so depending on where you use it, you'll want to check IsAvailable first.
  • Added RequestId to SlackRequestContext, which provides a unique ID for the current request.
  • Added RequestId to RawSocketMessage and SocketMessage.
  • Fixes and extra properties for the OpenIdApi.Token API.

Logging

The default logger doesn't do anything, so if you want logging, you'll need to implement the ILogger interface and provide it with one of the UseLogger configuration methods. If you're using SlackNet.AspNetCore, the default logger is overridden with an adaptor for the Microsoft.Extensions.Logging logger, which itself can be overridden as necessary.

Implementing ILogger should be fairly straightforward - see the MicrosoftLoggerAdaptor for an example. I've provided a range of ILogEvent extension methods to adapt log events to a variety of formats. All log events have a Category property, and should have a "Source" message property, which can be used for filtering and determining the appropriate verbosity.

Breaking Changes

  • SlackNet.AspNetCore now depends on the Microsoft.Extensions.Logging.Abstractions package.
  • SlackRtmClient requires an ILogger when constructed with specific services.
  • CoreSocketModeClient requires an ILogger when constructed with specific services.
  • SlackSocketModeClient requires an ILogger when constructed.

Thankyou to @objmj-itminds for the Open ID improvements ✨

v0.9.5

2 years ago
  • Sign-in with slack support via Open ID api methods

Thankyou to @objmj-itminds for this release 🎁

v0.9.4

2 years ago
  • Implementation of oauth.v2.access method and required response types
  • Adding Team property to MessageEvent

Thanks to @objmj-itminds for the OAuth API work 🔒