1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

🐛 fix addMember guild not populating

This commit is contained in:
Flam3rboy 2021-05-10 14:27:03 +02:00
parent 784cf3ce93
commit 0548c8784d

View File

@ -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),
]);