Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #59
close #57
close #56
close #55
close #51
close #50
close #49
close #48
close #32
close #26
close #24
现拆分为
Mirai-CSharp
和Mirai-CSharp.HttpApi
两个项目重大更改
Mirai_CSharp
改为Mirai.CSharp
Mirai_CSharp.Plugin
以及子命名空间下的所有类型Task<bool>
改为Task
, 若要中断消息处理队列, 请将消息对象(e)下的BlockRemainingHandlers
属性改为true
Mirai.CSharp.Model.ChatMessages
和Mirai.CSharp.HttpApi.Model.ChatMessages
Mirai.CSharp.Models.EventArgs
Mirai_CSharp.Models.MessageBase
拆分为Mirai.CSharp.Model.ChatMessages.(I)ChatMessage
Mirai_CSharp.Models.MessageBuilder
拆分为Mirai.CSharp.Builders.(I)MessageChainBuilder
Mirai_CSharp.Models.MessageBuilder
的扩展类, 将其下所有方法移动至Mirai.CSharp.Builders.(I)MessageChainBuilder
下Mirai_CSharp.MiraiHttpSession
拆分为Mirai.CSharp.Session.IMiraiSession
,Mirai.CSharp.HttpApi.Session.(I)MiraiHttpSession
Mirai_CSharp.MiraiHttpSession
下的所有事件Mirai.CSharp.Models.PokeMessage.PokeType
移动至Mirai.CSharp.Models.PokeType
新增功能
CancellationToken
取消操作, 必要时添加了ConfigureAwait(false)
机器人/好友/群员
的个人资料, 定义位于Mirai-CSharp/Session/IMiraiSession.FetchProfile.cs
Mirai-CSharp/Session/IMiraiSession.GroupFile.cs
IMiraiSession.SetEssenceMessageAsync(int, CancellationToken)
IMiraiSession.DeleteFriendAsync(long, CancellationToken)
IMiraiSession.NudgeAsync(NudgeTarget, long, long?, CancellationToken)
Mirai.CSharp.Models.ChatMessages.IForwardMessage
和Mirai.CSharp.Models.ChatMessages.IForwardMessageNode
Mirai.CSharp.Models.ChatMessages.IDiceMessage
Mirai.CSharp.Models.ChatMessages.ISharedMusicMessage
Mirai.CSharp.Models.EventArgs.IGroupMemberHonorChangedEventArgs
Mirai.CSharp.Models.EventArgs.IStrangerMessageEventArgs
Mirai.CSharp.Models.EventArgs.IOtherClientMessageEventArgs
注意事项
Mirai-CSharp
是 基础项目,Mirai-CSharp.HttpApi
是 实现项目, 即对接 mirai-api-http, 将来也可能有Mirai-CSharp,Native
, 对接 mirai-native迁移方法
看一看示例项目里边的代码注释就好辽
还是不懂那就在上边的 Discussion 里边开一贴询问吧