Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

[feature request]统一Bot消息事件 #167

Open
PhotonSPK opened this issue Jul 4, 2022 · 0 comments
Open

[feature request]统一Bot消息事件 #167

PhotonSPK opened this issue Jul 4, 2022 · 0 comments
Milestone

Comments

@PhotonSPK
Copy link
Contributor

现有的消息事件根据消息的场合 (群 私聊 临时会话) 被分为了几种不同的事件 这些事件的内部成员命名没有一个统一的规范

例如 FriendMessageEventGroupMessageEvent 这两个消息事件在大部分地方上都是重合的 但是其内部指向消息发送人和消息发送位置的成员命名却完全不同 尽管已经有 BotGroupBotFriend 这两个类 事件内部成员仍然使用 QQ号 和 Q群号

完全可以让消息事件共同继承一个消息事件父类 同时抛弃QQ号和Q群号 转为使用 BotGroupBotFriend 以此来灵活的实现消息事件的处理

@TheSnowfield TheSnowfield added this to the 2.0.0 milestone Jul 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants