⚡ use mongoose autopopulate
This commit is contained in:
@@ -5,6 +5,7 @@ export async function emitEvent(payload: Omit<Event, "created_at">) {
|
||||
created_at: new Date(), // in seconds
|
||||
...payload,
|
||||
};
|
||||
// TODO: bigint isn't working
|
||||
|
||||
return await new EventModel(obj).save();
|
||||
}
|
||||
|
||||
@@ -75,6 +75,7 @@ export async function addMember(user_id: string, guild_id: string, cache?: { gui
|
||||
},
|
||||
guild_id: guild_id,
|
||||
} as GuildMemberAddEvent),
|
||||
|
||||
emitEvent({
|
||||
event: "GUILD_CREATE",
|
||||
data: guild,
|
||||
|
||||
Reference in New Issue
Block a user