From d6f51a5c2bc0c9f91773101b708cf15a22a90421 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Sun, 28 Jul 2024 17:26:07 +0200 Subject: [PATCH] adjust unit converter card --- commands/interaction/slash/search/google.js | 6 +++++- commands/message/search/google.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/commands/interaction/slash/search/google.js b/commands/interaction/slash/search/google.js index 325819a..ae51b6c 100644 --- a/commands/interaction/slash/search/google.js +++ b/commands/interaction/slash/search/google.js @@ -121,7 +121,11 @@ function createSearchResultPage(context, result, doodle){ break; case SEARCH_CARD_TYPES.UNIT_CONVERTER: res = createEmbed("default", context, { - description: `### Unit Converter\n \n${smallPill(result.units[0])} ${icon("equals")} ${pill(result.units[1])}`, + author: { + name: result.query, + iconUrl: STATIC_ICONS.search_calculator + }, + description: `### Unit Converter\n${smallPill(result.units[0])} ​ ​ ​​${icon("arrow_right")} ​ ​ ​ ​${pill(result.units[1])}`, footer: renderFooter(context, doodle) }) break; diff --git a/commands/message/search/google.js b/commands/message/search/google.js index ccf6b09..d560428 100644 --- a/commands/message/search/google.js +++ b/commands/message/search/google.js @@ -122,7 +122,11 @@ function createSearchResultPage(context, result, doodle){ break; case SEARCH_CARD_TYPES.UNIT_CONVERTER: res = createEmbed("default", context, { - description: `### Unit Converter\n \n${smallPill(result.units[0])} ${icon("equals")} ${pill(result.units[1])}`, + author: { + name: result.query, + iconUrl: STATIC_ICONS.search_calculator + }, + description: `### Unit Converter\n${smallPill(result.units[0])} ​ ​ ​​${icon("arrow_right")} ​ ​ ​ ​${pill(result.units[1])}`, footer: renderFooter(context, doodle) }) break;