A comprehensive Slack API client for .NET
teamId
parameter to IConversationsApi.List
Thankyou to @jtsai-osa for this release 👍
Subtype
property back to MessageEvent
, which was accidentally removed in the previous release.PlainText.Emoji
is true by default to match Slack's default behaviour when the property isn't specified in the JSON.MessageEventBase
base class for AppMention
& MessageEvent
with common properties.ExtraProperties
property to Event
to catch any information that Slack sends that doesn't have an existing property.ClientMsgId
and Team
properties to MessageEventBase
.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.EventTs
property found on many event types up to the Event
base class.OauthV2AccessResponse
.OAuthV2Api.Access
doesn't include authorization header in request.OAuthV2Api.Access
.AppsEventsAuthorizationsApi.List
and renamed API to AppsEventAuthorizations
to match endpoint.Thankyou to @Kalissaac for this release 👍
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.RequestId
to SlackRequestContext
, which provides a unique ID for the current request.RequestId
to RawSocketMessage
and SocketMessage
.OpenIdApi.Token
API.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.
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 ✨
Thankyou to @objmj-itminds for this release 🎁
Team
property to MessageEvent
Thanks to @objmj-itminds for the OAuth API work 🔒