From f58bfa325e3f4eb8d4b5fe434a445d4e0e7993bf Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Thu, 5 Jul 2018 22:23:21 +0800 Subject: [PATCH] Fix bug --- none/permission.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/none/permission.py b/none/permission.py index c70df552..e88dfd5c 100644 --- a/none/permission.py +++ b/none/permission.py @@ -33,6 +33,7 @@ IS_GROUP = GROUP IS_SUPERUSER = 0xFFFF _min_context_fields = ( + 'self_id', 'message_type', 'sub_type', 'user_id', @@ -84,6 +85,7 @@ async def _check(bot: NoneBot, min_ctx: _MinContext, if not min_ctx.anonymous: try: member_info = await bot.get_group_member_info( + self_id=min_ctx.self_id, group_id=min_ctx.group_id, user_id=min_ctx.user_id, no_cache=True