Skip to content

Commit

Permalink
feat: Include the original text in language recognition.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jul 7, 2024
1 parent 89621a9 commit 55e8547
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/library/commands/handlers/recognise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -177,7 +177,12 @@ async function handleRecogniseLanguage(
}

await client.noticed(interaction, {
embeds: [{ fields }],
embeds: [
{
description: `> *${text}*\n\n`,
fields,
},
],
components: [
{
type: Discord.MessageComponentTypes.ActionRow,
Expand Down

0 comments on commit 55e8547

Please sign in to comment.