From 55e85473d8876641305165459f40897b8d2c589b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Sun, 7 Jul 2024 12:11:58 +0100 Subject: [PATCH] feat: Include the original text in language recognition. --- source/library/commands/handlers/recognise.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/library/commands/handlers/recognise.ts b/source/library/commands/handlers/recognise.ts index 916597edb..fe5a6fef3 100644 --- a/source/library/commands/handlers/recognise.ts +++ b/source/library/commands/handlers/recognise.ts @@ -88,7 +88,7 @@ async function handleRecogniseLanguage( await client.noticed(interaction, { embeds: [ { - description: strings.description({ language: strings.language(language) }), + description: `> *${text}*\n\n${strings.description({ language: strings.language(language) })}`, }, ], components: [ @@ -177,7 +177,12 @@ async function handleRecogniseLanguage( } await client.noticed(interaction, { - embeds: [{ fields }], + embeds: [ + { + description: `> *${text}*\n\n`, + fields, + }, + ], components: [ { type: Discord.MessageComponentTypes.ActionRow,