Skip to content

Conversation

ForliyScarlet
Copy link
Member

Support /channel/user-list

close #267

@ForliyScarlet ForliyScarlet added 特性 新的功能或特性 API 与API相关 labels Aug 19, 2025
@ForteScarlet ForteScarlet requested a review from Copilot August 19, 2025 15: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 implements support for the /channel/user-list API to retrieve users in voice channels, adding two new APIs: GetChannelUserListApi for fetching voice channel user lists and ChannelKickoutApi for kicking users from voice channels.

  • Adds GetChannelUserListApi with VoiceChannelUser data class to retrieve voice channel user information
  • Implements ChannelKickoutApi for removing users from voice channels
  • Updates build configuration to include ktor-client-mock for testing

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
GetChannelUserListApi.kt Implements the main API for retrieving voice channel user lists with data classes
ChannelKickoutApi.kt Implements API for kicking users from voice channels
GetChannelUserListApiTest.kt Comprehensive test coverage for the GetChannelUserListApi functionality
ChannelKickoutApiTest.kt Test coverage for the ChannelKickoutApi functionality
KookBotImpl.kt Minor code cleanup and TODO comment addition
build.gradle.kts Adds ktor-client-mock dependency for testing
libs.versions.toml Defines the ktor-client-mock library version
simbot-component-kook-api.api API definition updates for the new classes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

…bot/kook/api/channel/GetChannelUserListApi.kt

Co-authored-by: Copilot <[email protected]>
@ForliyScarlet
Copy link
Member Author

ForliyScarlet commented Aug 19, 2025

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 065d36f into dev/main Aug 19, 2025
4 checks passed
@ForteScarlet ForteScarlet deleted the dev/support-channel-user-list-API branch August 19, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API 与API相关 特性 新的功能或特性
Projects
None yet
Development

Successfully merging this pull request may close these issues.

缺少获取语音频道用户列表api
2 participants