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 });