From 8e4e58016f430f6a5820b24d7ad74037ec235942 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 25 Jan 2023 12:29:55 -0700 Subject: [PATCH] remap files to attachments --- src/lib/commandDispatcher.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/commandDispatcher.js b/src/lib/commandDispatcher.js index 5b69232..94eec60 100644 --- a/src/lib/commandDispatcher.js +++ b/src/lib/commandDispatcher.js @@ -148,6 +148,10 @@ async function CommandDispatcher(msg) { files.push(newFile); response.files = files; } + if (response.files) { + response.attachments = response.files; + delete response.files; + } if (response.embed) { response.embeds = [...(response.embeds ?? []), response.embed]; delete response.embed;