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:
parent
784cf3ce93
commit
0548c8784d
@ -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),
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user