Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG修复 属性添加 方法添加 支持输入控制台指令 注释修改 #78

Merged
merged 8 commits into from
Jul 15, 2023

Conversation

Mliybs
Copy link
Collaborator

@Mliybs Mliybs commented Jul 14, 2023

修改了一部分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()

@SinoAHpx SinoAHpx merged commit b2bb0f3 into Mirai-NET-Shelter:2.4 Jul 15, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants