mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 19:05:29 +00:00
Merge pull request #1008 from spacebarchat/dev/samuel
This commit is contained in:
@@ -274,7 +274,7 @@ export async function sendMessage(opts: MessageOptions) {
|
||||
const message = await handleMessage({ ...opts, timestamp: new Date() });
|
||||
|
||||
await Promise.all([
|
||||
Message.insert(message),
|
||||
message.save(),
|
||||
emitEvent({
|
||||
event: "MESSAGE_CREATE",
|
||||
channel_id: opts.channel_id,
|
||||
|
||||
Reference in New Issue
Block a user