From 3960a19bcbb7d2ffb0e40e0d0e5d406b7d85b510 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 14 Nov 2023 11:30:08 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/platform/qqchan.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/model/platform/qqchan.py b/model/platform/qqchan.py index 57baea86b..3c1c84f19 100644 --- a/model/platform/qqchan.py +++ b/model/platform/qqchan.py @@ -11,24 +11,24 @@ from nakuru.entities.components import Plain, At, Image from botpy.types.message import Reference class NakuruGuildMember(): - tiny_id: int - user_id: int - title: str - nickname: str - role: int - icon_url: str + tiny_id: int # 发送者识别号 + user_id: int # 发送者识别号 + title: str + nickname: str # 昵称 + role: int # 角色 + icon_url: str # 头像url class NakuruGuildMessage(): type: str = "GuildMessage" - self_id: int - self_tiny_id: int - sub_type: str - message_id: str - guild_id: int - channel_id: int - user_id: int - message: list - sender: NakuruGuildMember + self_id: int # bot的qq号 + self_tiny_id: int # bot的qq号 + sub_type: str # 消息类型 + message_id: str # 消息id + guild_id: int # 频道号 + channel_id: int # 子频道号 + user_id: int # 发送者qq号 + message: list # 消息内容 + sender: NakuruGuildMember # 发送者信息 raw_message: Message def __str__(self) -> str: