Cast ephemeral flag to number because lmao

This commit is contained in:
Rory&
2025-12-17 02:29:03 +01:00
parent 11a3a48731
commit 68d3cb70ac

View File

@@ -539,7 +539,7 @@ export async function postHandleMessage(message: Message) {
export async function sendMessage(opts: MessageOptions) {
const message = await handleMessage({ ...opts, timestamp: new Date() });
const ephemeral = (message.flags & (MessageFlags.FLAGS.EPHEMERAL)) !== 0;
const ephemeral = (message.flags & Number(MessageFlags.FLAGS.EPHEMERAL)) !== 0;
await Promise.all([
Message.insert(message),
emitEvent({