From 0b19c440df8f4d586b23d2a5194e34d51b693273 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 1 Jan 2025 04:09:20 +0100 Subject: [PATCH] don't log fields --- commands/interaction/context/translate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/interaction/context/translate.js b/commands/interaction/context/translate.js index 73ca18d..c9c7f14 100644 --- a/commands/interaction/context/translate.js +++ b/commands/interaction/context/translate.js @@ -32,7 +32,6 @@ async function translateMessage(context, message, to, from){ if(emb.fields){ let fi = 0; for(const f of emb.fields){ - console.log(f) mappings["embeds/" + i + "/fields/" + fi + "/name"] = f[1].name; mappings["embeds/" + i + "/fields/" + fi + "/value"] = f[1].value; fi++; @@ -86,7 +85,7 @@ async function translateMessage(context, message, to, from){ newEmbed.fields[fi] = { inline: f[1].inline } - + newEmbed.fields[fi].name = tr["embeds/" + i + "/fields/" + fi + "/name"] newEmbed.fields[fi].value = tr["embeds/" + i + "/fields/" + fi + "/value"] fi++;