共用方式為


OnFetchProfileCallback type

回調函數,用於提供自定義數據以為使用者或機器人構建配置檔。

type OnFetchProfileCallback = (
  userId: string,
  defaultProfile?: Profile
) => Promise<Profile | undefined>