From 60a3823b4718c92a7798e99201c0603eea4a96d8 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Sat, 18 Nov 2023 17:54:36 +0300 Subject: [PATCH] trim recipe string on input --- src/commands/recipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/recipe.ts b/src/commands/recipe.ts index 47de3fe..86b8dfe 100644 --- a/src/commands/recipe.ts +++ b/src/commands/recipe.ts @@ -89,7 +89,7 @@ export default { interaction.showModal(modal); } else if (interaction.isModalSubmit()) { const field = interaction.fields.getField('recipe-create-textbox', ComponentType.TextInput); - const recipeString = field.value; + const recipeString = field.value.trim(); await interaction.deferReply({ ephemeral: true });