Skip to content

Commit be6d0b2

Browse files
committed
fix: correct parameter usage in GetGroupMemberInfoApi call
Replaced incorrect `userId` parameter with `memberId` in `GetGroupMemberInfoApi.create` to ensure accurate group member retrieval functionality.
1 parent e5bc5b0 commit be6d0b2

File tree

1 file changed

+1
-1
lines changed
  • simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal

1 file changed

+1
-1
lines changed

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/OneBotBotImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ internal class OneBotBotImpl(
641641
override suspend fun member(groupId: ID, memberId: ID): OneBotMember {
642642
// TODO 如何检测不存在?
643643
return this@OneBotBotImpl.executeData(
644-
GetGroupMemberInfoApi.create(groupId, userId)
644+
GetGroupMemberInfoApi.create(groupId, memberId)
645645
).toMember(this@OneBotBotImpl)
646646
}
647647
}

0 commit comments

Comments
 (0)