Skip to content

Commit

Permalink
fix learning resource picker in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Aug 8, 2023
1 parent b430480 commit 450c8f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devdenbot",
"version": "7.0.3",
"version": "7.0.4",
"type": "module",
"main": "src/index.ts",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/modules/information/informationMessage.listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 450c8f7

Please sign in to comment.