Add rare ID and level support for recommended servers#40
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds support for rare (vanity) ID and rare level features for recommended servers in the Kook.Net SDK. These features allow servers with premium "rare" IDs to display additional visual customizations and metadata in the recommendation system.
Changes:
- Added RareLevel enum to represent the tier system for rare server IDs (None, Primary, Intermediate, Advanced, Premium)
- Added RareGuildResources struct to expose rare server visual resources (frame images, nameplate images, cover image, descriptions)
- Extended IRecommendInfo and RecommendInfo with RareId, RareLevel, and Resources properties
- Added API model RareGuildSettings and updated RecommendInfo API model with rare-related properties
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Kook.Net.Core/Entities/Guilds/RareLevel.cs | New enum defining the rare ID tier levels |
| src/Kook.Net.Core/Entities/Guilds/RareGuildResources.cs | New struct holding visual resources for rare servers |
| src/Kook.Net.Core/Entities/Guilds/IRecommendInfo.cs | Extended interface with rare ID properties and updated CustomId documentation |
| src/Kook.Net.Rest/Entities/Guilds/RecommendInfo.cs | Implementation updated with rare ID properties and initialization |
| src/Kook.Net.Rest/API/Common/RecommendInfo.cs | API model extended with rare_level, rare_guild_setting, and rare_id fields |
| src/Kook.Net.Rest/API/Common/RareGuildSettings.cs | New API model for deserializing rare guild setting data |
| src/Kook.Net.Rest/Extensions/EntityExtensions.cs | Added ToEntity mapping method for RareGuildSettings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot open a new pull request to apply changes based on the comments in this thread |
|
@gehongyan I've opened a new pull request, #43, to work on those changes. Once the pull request is ready, I'll request review from you. |
…nd documentation (#43) * Initial plan * Apply review feedback: fix missing RareLevel assignment, typos, and add VoiceChannelLink Co-authored-by: gehongyan <21241496+gehongyan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gehongyan <21241496+gehongyan@users.noreply.github.com>
|



No description provided.