From b1bc9592adbe00a367dd8ec2b579fd381ee9cd8e Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Wed, 29 Nov 2023 08:35:18 +0300 Subject: [PATCH] make recipe autocomplete guild-specific finally --- src/commands/craft.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/craft.ts b/src/commands/craft.ts index 53f2646..e2127d5 100644 --- a/src/commands/craft.ts +++ b/src/commands/craft.ts @@ -127,7 +127,8 @@ export default { .filter(recipe => recipe.outputs.filter(n => n.item.name.toLowerCase().includes(focused.toLowerCase())).length > 0); const customRecipes = await db('customCraftingRecipes') - .where('station', station); + .where('station', station) + .where('guild', interaction.guildId); const resolvedCustomRecipes = await Promise.all(customRecipes.map(resolveCustomRecipe));