Skip to content

Conversation

ForliyScarlet
Copy link
Member

close #213

Replaced incorrect `userId` parameter with `memberId` in `GetGroupMemberInfoApi.create` to ensure accurate group member retrieval functionality.
@ForliyScarlet ForliyScarlet added the bug Something isn't working label May 30, 2025
@ForteScarlet ForteScarlet requested a review from Copilot May 30, 2025 01:43
@ForteScarlet ForteScarlet enabled auto-merge May 30, 2025 01:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a parameter mismatch in the member function by passing the correct memberId to the API call, closing issue #213.

  • Corrects the argument in GetGroupMemberInfoApi.create from userId to memberId
Comments suppressed due to low confidence (1)

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

  • Consider adding or updating a unit test for the member(groupId, memberId) method to verify that the correct memberId is used in the API call, preventing regressions.
GetGroupMemberInfoApi.create(groupId, memberId)

@ForliyScarlet
Copy link
Member Author

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@ForteScarlet ForteScarlet merged commit db85aea into dev/main May 30, 2025
4 checks passed
@ForteScarlet ForteScarlet deleted the dev/fix-213 branch May 30, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

请成员增加事件OneBotGroupMemberIncreaseEvent获取增加的成员返回的是bot
2 participants