From ce290440c3834d662ff4b20043a6c9f89b6623c2 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Wed, 19 Apr 2023 14:50:31 +0000 Subject: [PATCH] feat: dynamic grammar --- src/commands/verify.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/verify.ts b/src/commands/verify.ts index 29d7778a6..3e4b23381 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -48,7 +48,9 @@ export async function execute(interaction: CommandInteraction) { .setDescription( `Are you sure your username is exactly "${ign}" in the ${server} server? I found ${ players.data.length < 100 ? players.data.length : 'over 100' - } account(s). Try re-running the command. There might be a typo and capitalization matters.`, + } similarly spelled account${ + players.data.length !== 1 ? 's' : '' + }. Try re-running the command. There might be a typo and capitalization matters.`, ), ], });