node-karin 0.12.19 → 0.12.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,12 +206,12 @@ export class AdapterOneBot11 {
206
206
  }
207
207
  else {
208
208
  const content = this.KarinConvertAdapter(i.content);
209
- const userId = String(i.user_id || selfUin);
209
+ const userId = Number(i.user_id || selfUin);
210
210
  const nickname = String(i.nickname || selfNick);
211
211
  messages.push({ type, data: { user_id: userId, nickname, content } });
212
212
  }
213
213
  }
214
- const params = { [messageType]: String(peer), messages };
214
+ const params = { [messageType]: Number(peer), messages };
215
215
  return await this.SendApi("send_forward_msg" /* OB11Api.sendForwardMsg */, params);
216
216
  }
217
217
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.12.19",
3
+ "version": "0.12.20",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",