diff --git a/package.json b/package.json index 6834ed7..826be2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devdenbot", - "version": "7.0.3", + "version": "7.0.4", "type": "module", "main": "src/index.ts", "scripts": { diff --git a/src/modules/information/informationMessage.listener.ts b/src/modules/information/informationMessage.listener.ts index 5ebd83a..f99b4fd 100644 --- a/src/modules/information/informationMessage.listener.ts +++ b/src/modules/information/informationMessage.listener.ts @@ -78,10 +78,10 @@ async function sendLearningResourcesPicker (interaction: ButtonInteraction) { .setPlaceholder('Select a resource') .setOptions( getAllCachedResources() - .map(([_, res]) => { + .map(([file, res]) => { const builder = new StringSelectMenuOptionBuilder() .setLabel(res.name) - .setValue(res.name) + .setValue(file) .setDescription(truncateTo(res.description, 100)) if (res.emoji) { const parse = getEmoji(interaction.client, res.emoji)