From 0548c8784da368fe35afbdfbca24ed5558959415 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 10 May 2021 14:27:03 +0200 Subject: [PATCH] :bug: fix addMember guild not populating --- src/util/Member.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/Member.ts b/src/util/Member.ts index 85b51666..3d43dec5 100644 --- a/src/util/Member.ts +++ b/src/util/Member.ts @@ -8,6 +8,7 @@ import { GuildModel, MemberModel, RoleModel, + toObject, UserModel, } from "@fosscord/server-util"; import { HTTPError } from "lambert-server"; @@ -88,7 +89,7 @@ export async function addMember(user_id: string, guild_id: string, cache?: { gui emitEvent({ event: "GUILD_CREATE", - data: guild, + data: toObject(guild), user_id, } as GuildCreateEvent), ]);