Skip to content

Conversation

@zeonzip
Copy link
Contributor

@zeonzip zeonzip commented Nov 4, 2025

Added fields to the [Member] struct which was missing in model.

https://discord.com/developers/docs/resources/guild#guild-member-object

permissions (ignored), banner and avatar_decoration_data was missing, and in this PR it is added.

(permissions was ignored because we already have it present in PartialMember with interactions, this is the only case where permissions would deserialize to Some)

@zeonzip zeonzip changed the title feat(member, http): add missing fields to Member feat(model, http): add missing fields to Member Nov 4, 2025
@github-actions github-actions bot added c-cache Affects the cache crate c-model Affects the model crate t-feature Addition of a new feature labels Nov 4, 2025
@zeonzip zeonzip changed the title feat(model, http): add missing fields to Member feat(model, cache): add missing fields to Member Nov 4, 2025

impl From<Member> for CachedMember {
fn from(member: Member) -> Self {
#[allow(unused_variables)]
Copy link
Member

Choose a reason for hiding this comment

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

We should also cache the avatar decoration data and banner instead of allowing unused_variables here.

@zeonzip zeonzip requested a review from HTGAzureX1212 November 4, 2025 20:39
Copy link
Member

@HTGAzureX1212 HTGAzureX1212 left a comment

Choose a reason for hiding this comment

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

LGTM.

@Erk- Erk- merged commit 9f305ca into twilight-rs:next Nov 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-cache Affects the cache crate c-model Affects the model crate t-feature Addition of a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants