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.
插入贴纸。
static insertSticker(path: string): Promise<APIResponse<boolean>>;
path
string
APIResponse<boolean>
result === true
import { PluginCommAPI } from 'sn-plugin-lib'; /** * 插入贴纸的示例。 */ export async function exampleInsertSticker() { const stickerPath = '/storage/emulated/0/Note/stickers/demo.sticker'; const res = await PluginCommAPI.insertSticker(stickerPath); if (!res.success) { throw new Error(res.error?.message ?? 'insertSticker 调用失败'); } return res.result; }