/edit strain ready for testing
All checks were successful
NodBot Production Dockerization / build (pull_request) Successful in 15s

This commit is contained in:
Skylar Grant 2023-08-08 20:46:10 -04:00
parent 8b2768bc12
commit 663c8e0a1a

View File

@ -164,7 +164,8 @@ module.exports = {
rating: interaction.options.getString('rating'), rating: interaction.options.getString('rating'),
description: interaction.options.getString('description') description: interaction.options.getString('description')
}; };
const strainData = new StrainData().setInfo(interaction.options.getString('name'), details); const strainData = interaction.client.strains.get(interaction.options.getString('name'));
strainData.setInfo(interaction.options.getString('name'), details);
await fn.upload.strain(interaction, strainData); await fn.upload.strain(interaction, strainData);
const reply = await fn.download.strain(strainData.name, interaction); const reply = await fn.download.strain(strainData.name, interaction);
await interaction.editReply(reply); await interaction.editReply(reply);