mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +08:00
Fix bug
This commit is contained in:
parent
e639889944
commit
f58bfa325e
@ -33,6 +33,7 @@ IS_GROUP = GROUP
|
|||||||
IS_SUPERUSER = 0xFFFF
|
IS_SUPERUSER = 0xFFFF
|
||||||
|
|
||||||
_min_context_fields = (
|
_min_context_fields = (
|
||||||
|
'self_id',
|
||||||
'message_type',
|
'message_type',
|
||||||
'sub_type',
|
'sub_type',
|
||||||
'user_id',
|
'user_id',
|
||||||
@ -84,6 +85,7 @@ async def _check(bot: NoneBot, min_ctx: _MinContext,
|
|||||||
if not min_ctx.anonymous:
|
if not min_ctx.anonymous:
|
||||||
try:
|
try:
|
||||||
member_info = await bot.get_group_member_info(
|
member_info = await bot.get_group_member_info(
|
||||||
|
self_id=min_ctx.self_id,
|
||||||
group_id=min_ctx.group_id,
|
group_id=min_ctx.group_id,
|
||||||
user_id=min_ctx.user_id,
|
user_id=min_ctx.user_id,
|
||||||
no_cache=True
|
no_cache=True
|
||||||
|
Loading…
Reference in New Issue
Block a user