v0.7.0
Update Path
The KOOK client now supports sending messages within voice channels. As a result, the following APIs have been modified:
CreateVoiceChannelProperties
now inherits fromCreateTextChannelProperties
.ModifyVoiceChannelProperties
now inherits fromModifyTextChannelProperties
.IVoiceChannel
now inherits fromITextChannel
.- The value of
ChannelPermissions.Voice
now includes permissions for text channels. - The
SocketTextChannel.GetMessagesAsync
series of methods are now virtual methods, to be overridden bySocketVoiceChannel
.
It's important to note that, due to limitations in the KOOK API, fetching message history and pinning messages are not supported within voice channels via the API. Therefore, calling GetMessagesAsync
and GetPinnedMessagesAsync
methods from IMessageChannel
on voice channels is not supported.
Additionally, while voice channels support operations on Topic
and SlowModeInterval
at the API level, the KOOK client currently does not reflect these capabilities.
Creating channels does not immediately support specifying a Topic. The Topic
property in CreateTextChannelProperties
has been removed and does not take effect. Please use the ITextChannel.ModifyAsync
method to modify the channel after creation.
Added
- Added support for defining card messages via XML. (#9 by @LiamSho)
IVoiceChannel
now inherits fromITextChannel
, with relevant implementations updated.- Added
SentRequest
event toBaseKookClient
. - Added non-null result prompts for parsing card message-related
Try*
methods.
Fixed
- Corrected the issue with
ConnectionManager
incorrectly updatingState
whenDisconnected
.
Changes
- Removed the
Topic
property fromCreateTextChannelProperties
.
Misc
- Marked the project as not supporting AOT and assembly trimming.
- Added example project
Kook.Net.Samples.CardMarkup
. (#9 by @LiamSho) - Added documentation for defining card messages via XML. (#9 by @LiamSho)
- Added Logo.
New Contributors
- @LiamSho made their first contribution in #9
Full Changelog: v0.6.0...v0.7.0