Skip to content

Commit

Permalink
Bumps version into v0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Nov 12, 2024
1 parent 9dd8f59 commit 1f3800e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

---

## v0.9.4 [2024-11-12]

### Added

- Added support for sending and modifying template messages.
- Overloads for `IMessageChannel.SendTextAsync`, `IMessageChannel.SendCardsAsync`, `IDMChannel.SendTextAsync`,
and `IDMChannel.SendCardsAsync` methods now accept parameters `templateId`, `parameters`, and
`jsonSerializerOptions` for sending template messages.
- Added `TemplateId`, `Parameters`, and `JsonSerializerOptions` properties to `MessageProperties` for modifying
template messages.
- Added `MessageProperties<T>` class to support passing generic-typed `parameters` arguments.
- Text command framework now supports keyed services. The `FromKeyedServicesAttribute` can be used to obtain keyed
service instances.

### Fixed

- Fixed the issue where `SocketGuild.CurrentUser` was null.

### Misc

- Fixed an issue where direct messages might not be edited correctly.

## v0.9.3 [2024-10-27]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Kook.Net.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<VersionPrefix>0.9.3</VersionPrefix>
<VersionPrefix>0.9.4</VersionPrefix>
<!-- <VersionSuffix>beta5</VersionSuffix>-->
<IsPackable>false</IsPackable>
<IsTrimmable>false</IsTrimmable>
Expand Down
20 changes: 20 additions & 0 deletions docs/changelog/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ title: 变更日志

# 变更日志

## v0.9.4 [2024-11-12]

### 新增

- 新增支持发送与修改模板消息。
- `IMessageChannel.SendTextAsync``IMessageChannel.SendCardsAsync``IDMChannel.SendTextAsync`
`IDMChannel.SendCardsAsync` 方法新增接收参数 `templateId``parameters``jsonSerializerOptions`
的重载,可用于发送模板消息。
- `MessageProperties` 新增 `TemplateId``Parameters``JsonSerializerOptions` 属性,用于修改模板消息。
- 新增 `MessageProperties<T>` 类,用于支持传递泛型 `parameters` 参数。
- 文本命令框架支持注入键控服务,`FromKeyedServicesAttribute` 可用于从键控服务中获取服务实例。

### 修复

- 修复 `SocketGuild.CurrentUser` 为空的问题。

### 其它

- 修复私聊消息可能无法正确编辑的问题。

## v0.9.3 [2024-10-27]

### 新增
Expand Down

0 comments on commit 1f3800e

Please sign in to comment.