mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 02:50:48 +00:00
🐛 change USER perm and temp matcher type
This commit is contained in:
@ -127,8 +127,7 @@ def USER(*user: str, perm: Permission = Permission()):
|
||||
"""
|
||||
|
||||
async def _user(bot: "Bot", event: "Event") -> bool:
|
||||
return event.get_type() == "message" and event.get_session_id(
|
||||
) in user and await perm(bot, event)
|
||||
return event.get_session_id() in user and await perm(bot, event)
|
||||
|
||||
return Permission(_user)
|
||||
|
||||
|
Reference in New Issue
Block a user