mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
🐛 change USER perm and temp matcher type
This commit is contained in:
@ -526,7 +526,7 @@ class Matcher(metaclass=MatcherMeta):
|
||||
except RejectedException:
|
||||
self.handlers.insert(0, handler) # type: ignore
|
||||
Matcher.new(
|
||||
self.type,
|
||||
"message",
|
||||
Rule(),
|
||||
USER(event.get_session_id(),
|
||||
perm=self.permission), # type:ignore
|
||||
@ -539,7 +539,7 @@ class Matcher(metaclass=MatcherMeta):
|
||||
expire_time=datetime.now() + bot.config.session_expire_timeout)
|
||||
except PausedException:
|
||||
Matcher.new(
|
||||
self.type,
|
||||
"message",
|
||||
Rule(),
|
||||
USER(event.get_session_id(),
|
||||
perm=self.permission), # type:ignore
|
||||
|
Reference in New Issue
Block a user