mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-15 09:10:00 +08:00
⚡️ 优化权限判断
This commit is contained in:
@@ -30,7 +30,7 @@ __plugin_meta__ = PluginMetadata(
|
||||
extra=PluginExtraData(
|
||||
author="HibiKier",
|
||||
version="0.1",
|
||||
plugin_type=PluginType.HIDDEN,
|
||||
plugin_type=PluginType.DEPENDANT,
|
||||
configs=[
|
||||
RegisterConfig(
|
||||
key="type",
|
||||
|
||||
@@ -49,7 +49,7 @@ class HelpImageBuild:
|
||||
self._data = await PluginInfo.filter(
|
||||
menu_type__not="",
|
||||
load_status=True,
|
||||
plugin_type__in=[PluginType.NORMAL, PluginType.HIDDEN],
|
||||
plugin_type__in=[PluginType.NORMAL, PluginType.DEPENDANT],
|
||||
)
|
||||
if not self._sort_data:
|
||||
for plugin in self._data:
|
||||
|
||||
Reference in New Issue
Block a user