shuiping233
1199b704a8
feat: implements support for KOOK role mentions (#7626)
* feat: 实现kook适配器响应`@`角色(role)的能力
* refactor: kook适配器处理role时,`At`组件保留`@`角色的名称而不是id
* fix: kook适配器处理role时,role_id的判断问题
* refactor: 移除kook适配器中的一个# type: ignore
* fix: 修复kook适配器 role mention转换成`At`组件时保留不是角色名称的bug;
* unittest: 给kook适配器添加带有role mention的事件消息的单测,并添加消息组件转换判断单测
* unittest: 部分重构test_kook_event.py和test_kook_types.py 单测
* unittest: 添加kook适配器的 `user/me` `user/view` 接口响应数据验证单测
* fix: 修复kook适配器接收频道权限更新消息会报错的bug
* fix: 不额外处理kook的道具消息
* fix: 使用async with self._http_client.get
* refactor: kook适配器转换文本内容为消息组件时,只strip mention之间的空格
* fix: 修复 role_mention_counter 计数不正确的问题
* fix: 修复kook适配器发送卡片失败的问题;区分两类kook 数据类的to_dict to_json行为
* chore: 添加注释
* refactor: 重构kook适配器的角色缓存功能,使其无锁,性能更好且具备良好的重试机制
* refactor: kook适配器的channel_id 改为 guild_id
* feat: kook适配器响应频道角色更新事件时不再清空整个角色id缓存,而是只清理特定频道的角色id缓存
* unittest: 添加kook适配器的update_role事件的数据类验证单测
* refactor: 补上了一些打印的日志消息文本
refactor: 补上了一些打印的日志消息文本
refactor: 补上了一些打印的日志消息文本
* refactor: 修复kook适配器潜在可能的类型问题
* refactor: `clean_roles_cache`重命名为`clear_guild_roles_cache`
2026-04-19 14:18:16 +08:00
..
2026-03-20 10:06:20 +08:00
2026-04-12 13:42:51 +08:00
2026-04-19 14:18:16 +08:00
2026-04-18 19:57:27 +08:00
2026-02-23 23:35:15 +08:00
2026-03-29 00:03:05 +08:00
2026-03-01 00:06:04 +08:00
2026-04-08 11:35:59 +08:00
2026-03-14 23:41:28 +08:00
2026-02-19 01:26:04 +08:00
2026-04-11 17:01:54 +08:00
2026-03-22 14:23:21 +08:00
2026-04-11 17:01:54 +08:00
2026-04-13 12:47:27 +09:00
2026-03-28 23:22:24 +08:00
2026-04-13 12:47:27 +09:00
2026-04-13 12:47:27 +09:00
2026-03-29 00:03:05 +08:00
2026-03-28 21:31:52 +09:00
2026-04-14 16:27:06 +08:00
2026-04-11 17:01:54 +08:00
2026-03-11 23:58:28 +09:00
2026-04-10 17:08:10 +09:00
2026-04-06 18:27:28 +08:00
2026-03-23 09:05:58 +08:00
2026-02-11 17:14:47 +08:00
2026-04-11 17:01:54 +08:00
2026-04-04 23:49:18 +08:00
2026-04-10 17:08:10 +09:00
2026-04-10 17:08:10 +09:00
2026-04-10 17:08:10 +09:00
2026-02-21 01:03:58 +08:00
2026-02-12 23:42:29 +09:00
2026-03-07 21:42:56 +09:00
2025-11-03 02:43:00 +08:00
2026-03-22 14:23:21 +08:00
2026-03-22 14:23:21 +08:00
2026-03-01 00:06:04 +08:00
2026-03-23 09:33:37 +08:00
2026-04-12 13:42:51 +08:00
2026-02-12 01:04:48 +08:00
2026-04-11 17:01:54 +08:00
2026-04-17 13:13:21 +09:00
2026-03-21 20:44:36 +08:00