mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 00:03:05 +00:00
🚧 message acknowledge
This commit is contained in:
1 parent
255c84e319
commit
aee1eb2949
4 files changed
+27
-21
No files matched your search
+1
-1
@@ -124,7 +124,7 @@ export async function sendMessage(opts: Partial<Message>) {
|
||||
|
||||
await emitEvent({ event: "MESSAGE_CREATE", channel_id: opts.channel_id, data, guild_id: message.guild_id } as MessageCreateEvent);
|
||||
|
||||
postHandleMessage(data); // no await as it shouldnt block the message send function
|
||||
postHandleMessage(data).catch((e) => {}); // no await as it shouldnt block the message send function and silently catch error
|
||||
|
||||
return data;
|
||||
}
|
||||
Reference in new issue
Block a user