Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取插件按钮启用状态。
getButtonState(id: number): Promise<boolean>;
Promise<boolean>
true
false
import { PluginManager } from 'sn-plugin-lib'; /** * 获取按钮状态的示例。 */ export async function exampleGetButtonState() { const enabled = await PluginManager.getButtonState(1); return enabled; }