Returns
Promise<boolean>: whether the button was unregistered successfully
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Unregister a plugin button.
unregisterButton(id: number): Promise<boolean>;
| Parameter | Type | Description |
|---|---|---|
id | number | Button ID (the id you used when registering the button) |
Promise<boolean>: whether the button was unregistered successfullyimport { PluginManager } from 'sn-plugin-lib';
/**
* Example: unregister a button.
*/
export async function exampleUnregisterButton() {
const ok = await PluginManager.unregisterButton(1);
return ok;
}