mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	Fix bug
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user