summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 22:48:18 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 22:48:18 +1000
commit8d1b740d4edb929f81de1e9c281da28294269f0c (patch)
tree8dfa14df38169c6f0f97567d5ba1cf36ef5875b6
parentRemove user settings from GUILD_MEMBER_LIST_UPDATE response (diff)
downloadserver-8d1b740d4edb929f81de1e9c281da28294269f0c.tar.xz
Fix client crash on GUILD_CREATE
-rw-r--r--src/util/entities/Member.ts1
-rw-r--r--src/util/interfaces/Event.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index 27c67c40..34089af2 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -364,6 +364,7 @@ export class Member extends BaseClassWithoutId {
 					presences: [],
 					stage_instances: [],
 					threads: [],
+					embedded_activities: [],
 				},
 				user_id,
 			} as GuildCreateEvent),
diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts
index 472fd572..8048250c 100644
--- a/src/util/interfaces/Event.ts
+++ b/src/util/interfaces/Event.ts
@@ -156,6 +156,7 @@ export interface GuildCreateEvent extends Event {
 		presences: never[];
 		stage_instances: never[];
 		threads: never[];
+		embedded_activities: never[];
 	};
 }