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: {