Skip to content

导入或更新角色卡 ​

提示

请务必先阅读如何正确使用酒馆助手

点击查看对应类型定义文件 (可发给 AI 或 IDE 使用, 酒馆助手界面中提供了打包下载)

importRawCharacter ​

像酒馆界面里那样导入新角色卡/更新现有角色卡

ts
function importRawCharacter(filename: string, content: Blob): Promise<Response>;

参数 ​

filename ​

  • 类型: string
  • 描述: 角色卡名

content ​

  • 类型: Blob
  • 描述: 角色卡文件内容

示例 ​

ts
const response = await fetch(角色卡网络链接);
await importRawCharacter(角色卡名, await response.blob());