diff --git a/nonebot/plugin.py b/nonebot/plugin.py index 2181d3bd..3e9c0563 100644 --- a/nonebot/plugin.py +++ b/nonebot/plugin.py @@ -962,5 +962,5 @@ def require(name: str) -> Optional[Export]: - ``Optional[Export]`` """ - plugin = get_plugin(name) + plugin = get_plugin(name) or load_plugin(name) return plugin.export if plugin else None