From 69949588b0d00cf7e99afdbe4b42c0b2c0544cb6 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 12 Mar 2025 17:59:35 +0100 Subject: [PATCH] antonyms shouldn't be listed in the same group (part of pv2) --- commands/interaction/slash/utils/dictionary.js | 1 - commands/message/utils/dictionary.js | 1 - 2 files changed, 2 deletions(-) diff --git a/commands/interaction/slash/utils/dictionary.js b/commands/interaction/slash/utils/dictionary.js index 5c11b02..e129073 100644 --- a/commands/interaction/slash/utils/dictionary.js +++ b/commands/interaction/slash/utils/dictionary.js @@ -36,7 +36,6 @@ function renderDictionaryEntry(context, result, definition, language) { let nyms = []; if(d.synonyms) nyms = nyms.concat(d.synonyms.map((sd)=>smallPill(sd))) - if(d.antonyms) nyms = nyms.concat(d.antonyms.map((sd)=>pill(sd))) // Display up to 6 random synonyms/antonyms if(nyms.length >= 1) { diff --git a/commands/message/utils/dictionary.js b/commands/message/utils/dictionary.js index e644185..b9be074 100644 --- a/commands/message/utils/dictionary.js +++ b/commands/message/utils/dictionary.js @@ -35,7 +35,6 @@ function renderDictionaryEntry(context, result, definition, language) { let nyms = []; if(d.synonyms) nyms = nyms.concat(d.synonyms.map((sd)=>smallPill(sd))) - if(d.antonyms) nyms = nyms.concat(d.antonyms.map((sd)=>pill(sd))) // Display up to 6 random synonyms/antonyms if(nyms.length >= 1) {