1. 首页
  2. API 文档
  3. QQ 宠物
  4. get_friend_pet_profile

get_friend_pet_profile

  • 发布于 2026-08-17
  • 2 次阅读

获取好友宠物资料与当前数值。

调用

const result = await api.get_friend_pet_profile(self_id, friend_id)

参数

参数 类型 必填 说明
self_id number 在线 Bot QQ 号
friend_id number 好友 QQ 号

返回值

{
  friend_id: '123456789',
  pet_id: 'PET_ID',
  pet_name: '好友宠物',
  avatar_url: 'https://example.com/avatar.png',
  personality: '活泼',
  species: '蒜头鹅',
  job_name: '职业名称',
  vitals: {
    mood: 100,
    hunger: 90,
    cleanliness: 88,
    total: 278,
    gold: 0,
  },
}