make recipe autocomplete guild-specific finally

This commit is contained in:
Jill 2023-11-29 08:35:18 +03:00
parent 607f304359
commit b1bc9592ad
1 changed files with 2 additions and 1 deletions

View File

@ -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<CustomCraftingRecipe>('customCraftingRecipes')
.where('station', station);
.where('station', station)
.where('guild', interaction.guildId);
const resolvedCustomRecipes = await Promise.all(customRecipes.map(resolveCustomRecipe));