🚧 message acknowledge

This commit is contained in:
Flam3rboy committed 2021-07-30 17:37:16 +02:00
1 parent 255c84e319
commit aee1eb2949
4 files changed
+27 -21

No files matched your search

+1 -1
View File
@@ -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;
}