From 2236cf593ccc2426b5bad5f88d0cd64e7e0e4c17 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 9 Jul 2022 16:01:32 +1000 Subject: * Make max website preview download size for embeds configurable * Fix Message.update call throwing 'Cannot query across one-to-many for property attachments' --- util/src/entities/Config.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts index 063a4d4d..75ff4a85 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts @@ -85,6 +85,7 @@ export interface ConfigValue { maxReactions: number; maxAttachmentSize: number; maxBulkDelete: number; + maxEmbedDownloadSize: number; }; channel: { maxPins: number; @@ -249,6 +250,7 @@ export const DefaultConfigOptions: ConfigValue = { maxTTSCharacters: 200, maxReactions: 20, maxAttachmentSize: 8388608, + maxEmbedDownloadSize: 1024 * 1024 * 5, maxBulkDelete: 100, }, channel: { -- cgit 1.4.1