mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 18:15:41 +00:00
Cast ephemeral flag to number because lmao
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user