diff --git a/LittlePaimon/config/plugin/manage.py b/LittlePaimon/config/plugin/manage.py index c53c6ff..fb5580b 100644 --- a/LittlePaimon/config/plugin/manage.py +++ b/LittlePaimon/config/plugin/manage.py @@ -46,7 +46,7 @@ class PluginManager: group_list = await get_bot().get_group_list() user_list = await get_bot().get_friend_list() for plugin in plugin_list: - if plugin.name not in HIDDEN_PLUGINS and PluginPermission.default_connection is not None: + if plugin.name not in HIDDEN_PLUGINS and PluginPermission._meta.default_connection is not None: if group_list: for group in group_list: count = await PluginPermission.filter(