summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-18 21:50:48 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-18 21:50:48 +0100
commitc08765061c5bdc3e9a6c42225bfac62a69bc5a92 (patch)
treedc9e40d82d86acd6a080b078f491275a1b71f8f8
parentchore: run prettier (diff)
downloadserver-ts-c08765061c5bdc3e9a6c42225bfac62a69bc5a92.tar.xz
add TODO
-rw-r--r--scripts/schemaExclusions.json14
-rw-r--r--src/api/util/handlers/Message.ts2
2 files changed, 12 insertions, 4 deletions
diff --git a/scripts/schemaExclusions.json b/scripts/schemaExclusions.json

index b2847670..64e2bbf0 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 84758c0b..618f02f0 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<Message> { 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: {