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.
修改了一部分BUG
修改了MessageBase的SerializeToMiraiCode方法,当ImageMessage和FaceMessage的ImageId和FaceId为空时 不再抛出Exception而是System.ArgumentNullException(因为这俩只支持有ID的序列化),当PokeMessage遇到了Poke支持的六种消息类型以外的消息和遇到了不支持序列化的MessageBase序列化时会抛出System.NotSupportedException
给MessageChain添加了MiraiCode属性,使用MiraiCode会自动忽略那些不支持序列化的消息类型,可以用来比对某些消息是否相等
改进了MessageChain的==运算符
给ConsoleManager添加了Protocol枚举(只支持安卓手机 安卓平板 安卓手表 因为mirai http api文档写了只支持这仨) LoginAsync方法 StopAsync方法 LogoutAsync方法进行登录 退出MCL 登出操作 添加了ExecuteCommandAsync方法用于直接传入字符串或多个字符串执行MCL命令
优化了部分代码(指上次pr写出的? false : true逆天写法)
修复了部分注释
csproj和README的版本号改成了2.5.0()