Feature: 支持主动销毁事件响应器 (#1444)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Akirami
2022-12-06 14:19:48 +08:00
committed by GitHub
parent 9826bc29ca
commit 06c33ad6ea
3 changed files with 11 additions and 13 deletions

View File

@ -247,6 +247,11 @@ class Matcher(metaclass=MatcherMeta):
return NewMatcher
@classmethod
def destroy(cls) -> None:
"""销毁当前的事件响应器"""
matchers[cls.priority].remove(cls)
@classmethod
async def check_perm(
cls,