summary refs log tree commit diff
path: root/src/util/entities/Member.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2022-12-20 23:18:52 -0500
committerPuyodead1 <puyodead@proton.me>2022-12-20 23:25:20 -0500
commit8a28dd467540526d133972907d39f2a1eded929b (patch)
treea10f5e4e7ac34d1385c971c1f6b96ef96d1fa9dd /src/util/entities/Member.ts
parentFix the roles bug (diff)
downloadserver-8a28dd467540526d133972907d39f2a1eded929b.tar.xz
Client: update to canary 165341
Diffstat (limited to 'src/util/entities/Member.ts')
-rw-r--r--src/util/entities/Member.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index 1c8bfbef..bffec326 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -29,6 +29,7 @@ import { Role } from "./Role";
 import { BaseClassWithoutId } from "./BaseClass";
 import { Ban, PublicGuildRelations } from ".";
 import { DiscordApiErrors } from "../util/Constants";
+import { ReadyGuildDTO } from "../dtos";
 
 export const MemberPrivateProjection: (keyof Member)[] = [
 	"id",
@@ -363,7 +364,7 @@ export class Member extends BaseClassWithoutId {
 			emitEvent({
 				event: "GUILD_CREATE",
 				data: {
-					...guild,
+					...new ReadyGuildDTO(guild).toJSON(),
 					members: [...memberPreview, { ...member, user }],
 					member_count: memberCount + 1,
 					guild_hashes: {},
@@ -373,6 +374,7 @@ export class Member extends BaseClassWithoutId {
 					stage_instances: [],
 					threads: [],
 					embedded_activities: [],
+					voice_states: guild.voice_states
 				},
 				user_id,
 			} as GuildCreateEvent),