From c08765061c5bdc3e9a6c42225bfac62a69bc5a92 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Thu, 18 Dec 2025 21:50:48 +0100 Subject: [PATCH] add TODO --- scripts/schemaExclusions.json | 14 ++++++++++---- src/api/util/handlers/Message.ts | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/schemaExclusions.json b/scripts/schemaExclusions.json index b28476707..64e2bbf00 100644 --- a/scripts/schemaExclusions.json +++ b/scripts/schemaExclusions.json @@ -1,6 +1,10 @@ { - "include": ["MessageInteractionSchema"], - "includeRe": ["^MessageComponentType\\..*"], + "include": [ + "MessageInteractionSchema" + ], + "includeRe": [ + "^MessageComponentType\\..*" + ], "manual": [ "DefaultSchema", "Schema", @@ -83,7 +87,9 @@ "^Job" ], "manualWarn": [], - "manualWarnRe": [".*<.*>$"], + "manualWarnRe": [ + ".*<.*>$" + ], "auto": [ { "value": "StringSchema", @@ -406,4 +412,4 @@ "reason": "Schema with only uppercase properties" } ] -} +} \ No newline at end of file diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 84758c0bc..618f02f04 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -332,6 +332,8 @@ export async function handleMessage(opts: MessageOptions): Promise { const mention_roles: string[] = []; const mentions: string[] = []; + // TODO: mention_roles and mentions arrays - not needed it seems, but discord still returns that + message.message_snapshots = [ { message: {