🐛 change USER perm and temp matcher type

This commit is contained in:
yanyongyu
2021-01-24 18:16:18 +08:00
parent eb330c3260
commit 853b797cd9
2 changed files with 3 additions and 4 deletions

View File

@ -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)