Skip to content

Commit 20d25f3

Browse files
committed
fix: underlaying issues with transport member
1 parent dbe9efc commit 20d25f3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

DisCatSharp/Entities/Guild/DiscordMember.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ internal DiscordMember(TransportMember mbr)
9090
this.MemberFlags = mbr.MemberFlags;
9191
this.InteractionPermissions = mbr.Permissions;
9292
this.GuildAvatarDecorationData = mbr.GuildAvatarDecorationData;
93+
this.GuildDisplayNameStyles = mbr.GuildDisplayNameStyles;
9394
if (mbr.User is not null)
9495
this.ManualUser = new(mbr.User)
9596
{
@@ -130,7 +131,7 @@ public string? GuildBannerUrl
130131
public AvatarDecorationData GuildAvatarDecorationData { get; internal set; }
131132

132133
/// <summary>
133-
/// Gets the members's guild display name styles.
134+
/// Gets the member's guild display name styles.
134135
/// </summary>
135136
[JsonProperty("display_name_styles", NullValueHandling = NullValueHandling.Ignore)]
136137
public DisplayNameStyles? GuildDisplayNameStyles { get; internal set; }

DisCatSharp/Net/Abstractions/Transport/TransportMember.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ internal TransportMember()
4343
[JsonProperty("avatar_decoration_data", NullValueHandling = NullValueHandling.Ignore)]
4444
public AvatarDecorationData GuildAvatarDecorationData { get; internal set; }
4545

46+
/// <summary>
47+
/// Gets the guild display name styles.
48+
/// </summary>
49+
[JsonProperty("display_name_styles", NullValueHandling = NullValueHandling.Ignore)]
50+
public DisplayNameStyles? GuildDisplayNameStyles { get; internal set; }
51+
4652
/// <summary>
4753
/// Gets the guild bio.
4854
/// This is not available to bots tho.

0 commit comments

Comments
 (0)