Skip to content

Conversation

@Lulalaby
Copy link
Member

@Lulalaby Lulalaby commented Jan 6, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 6, 2026 07:23
@Lulalaby Lulalaby requested a review from a team as a code owner January 6, 2026 07:23
@Lulalaby Lulalaby requested review from JMLutra, VincentRPS, byterand and fthomys and removed request for JMLutra, VincentRPS and fthomys January 6, 2026 07:23
Copy link

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 bug in application command (AC) member parsing that was causing commands to fail silently. The issue occurred when resolved members in interactions didn't have their ManualUser property initialized, leading to null reference exceptions when accessing member user data.

Key Changes:

  • Fixed member parsing in interaction resolution by ensuring ManualUser is properly initialized before accessing member user properties
  • Added GuildDisplayNameStyles property to support guild-specific display name styling
  • Corrected JSON serialization by adding JsonIgnore to the overridden DisplayNameStyles property to prevent conflicts

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
DisCatSharp/Entities/Guild/DiscordMember.cs Added GuildDisplayNameStyles property, corrected documentation comments for guild-specific properties, and added JsonIgnore to DisplayNameStyles override
DisCatSharp/Clients/DiscordClient.Dispatch.cs Fixed member parsing bug by initializing ManualUser property before accessing User property in resolved members, simplified null-conditional access for PartialGuild

Copy link

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

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

@Lulalaby Lulalaby merged commit 9da94e2 into main Jan 6, 2026
13 checks passed
@Lulalaby Lulalaby deleted the fix/internal-nre branch January 6, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants