From 359e47d3f993b925012104b347d8ab2924f0a6bf Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 22 Nov 2025 16:20:42 -0600 Subject: [PATCH] update to use flags --- src/util/entities/Message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index 21892e397..88182eacf 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -30,6 +30,7 @@ import { Sticker } from "./Sticker"; import { Attachment } from "./Attachment"; import { NewUrlUserSignatureData } from "../Signing"; import { ActionRowComponent, ApplicationCommandType, Embed, MessageType, PartialMessage, Poll, Reaction } from "@spacebar/schemas"; +import { MessageFlags } from "@spacebar/util"; @Entity({ name: "messages", @@ -311,7 +312,7 @@ export class Message extends BaseClass { const arr = options.where instanceof Array ? options.where : [options.where]; for (const thing of arr) { if (!("flags" in thing)) { - thing.flags = Not(Raw((alias) => `${alias} & ${1 << 6} = ${1 << 6}`)); + thing.flags = Not(Raw((alias) => `${alias} & ${MessageFlags.FLAGS.PRIVATE_ROUTE} = ${MessageFlags.FLAGS.PRIVATE_ROUTE}`)); } } }