diff --git a/model/command/adapter/protocol_adapter.py b/model/command/adapter/protocol_adapter.py index 1f0f6030a..3e182d4d7 100644 --- a/model/command/adapter/protocol_adapter.py +++ b/model/command/adapter/protocol_adapter.py @@ -11,6 +11,7 @@ from .onebot.message_event import MessageEvent from .onebot.message_segment import MessageSegment from .nonebot.command_arg import CommandArg from .onebot.bot import Bot +from .nonebot.common import require from nakuru import ( GuildMessage, diff --git a/model/platform/qqchan.py b/model/platform/qqchan.py index ad3974f82..a9e46ad8a 100644 --- a/model/platform/qqchan.py +++ b/model/platform/qqchan.py @@ -76,7 +76,7 @@ class QQChan(): ngm.sub_type = "normal" ngm.message_id = message.id - ngm.guild_id = int(message.channel_id) + ngm.guild_id = int(message.guild_id) ngm.channel_id = int(message.channel_id) ngm.user_id = int(message.author.id) msg = []