Skip to content

v0.20.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 09:10
· 48 commits to master since this release

Breaking

  • Removed ISlackTypeResolver, along with UseTypeResolver, ISlackServiceProvider.GetTypeResolver, SlackServiceBuilder.GetTypeResolver, Default.SlackTypeResolver and Default.AssembliesContainingSlackTypes. Default.JsonSettings no longer takes a type resolver. Use ReplaceSlackType or RegisterSlackType to deserialize your own types.

Added

  • ReplaceSlackType<TSlackType, TReplacement>() deserializes your own type wherever SlackNet would create one of its own, so you can add properties SlackNet doesn't have yet.
  • RegisterSlackType<TSlackType>(typeIdentifier) deserializes Slack types that SlackNet doesn't have yet.
  • RegisterFunctionHandler handles executions of a single custom function by callback ID, with optional typed input values.
  • AgentSessionTitleChanged event.
  • ContextTeamId, Updated, IsOpen, IsFrozen, SharedTeamIds, InternalTeamIds, ConnectedTeamIds and PendingConnectedTeamIds on Conversation.
  • UserTeam, SourceTeam, DisplayAsBot, MediaDisplayType and HasMoreShares on File.
  • IsEmailConfirmed, WhoCanShareContactCard and IsWorkflowBot on User, and DisplayNameNormalized, Image1024 and IsCustomImage on UserProfile.
  • ParentUserId and Subscribed on MessageEvent.
  • ContextTeamId and ContextEnterpriseId on EventCallback, and IsEnterpriseInstall on Authorization.
  • Team and Enterprise on MemberJoinedChannel, and Team on MemberLeftChannel.

Fixed

  • channel_archive, channel_unarchive, group_archive and group_unarchive events are deserialized as ChannelArchive, ChannelUnarchive, GroupArchive and GroupUnarchive events, rather than as message subtypes.

Thankyou to @we4sz for his help with this release 💪