🚧 message acknowledge

This commit is contained in:
Flam3rboy
2021-07-30 17:37:16 +02:00
parent 255c84e319
commit aee1eb2949
4 changed files with 34 additions and 28 deletions
+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;
}