-
-
Notifications
You must be signed in to change notification settings - Fork 1
支持获取语音频道用户列表api #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持获取语音频道用户列表api #286
Conversation
…le after construction close #266
支持 ChannelKickoutApi (/channel/kickout)
There was a problem hiding this 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.
...t-kook-api/src/commonMain/kotlin/love/forte/simbot/kook/api/channel/GetChannelUserListApi.kt
Outdated
Show resolved
Hide resolved
…bot/kook/api/channel/GetChannelUserListApi.kt Co-authored-by: Copilot <[email protected]>
Qodana Community for JVMIt 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 Contact Qodana teamContact us at [email protected]
|
Support
/channel/user-list
close #267