JS, REACT & NODE

node.js – discord.js v13 What code would I use to collect the first attachment (image or video) from a MessageCollector?

I’ve looked everywhere and tried all I could think of but found nothing, everything seemed to fail. One bit of code I’ve used before that failed: Message.author.send({ embeds: [AttachmentEmbed] }).then(Msg…Read morenode.js – discord.js v13 What code would I use to collect the first attachment (image or video) from a MessageCollector?

JS, REACT & NODE REST/HTTP & GRAPHQL

reactjs – Gatsby – How to query for all YAML in a subfolder of src/data/ using GraphQL

According to the plugin’s documentation, given: module.exports = { plugins: [ `gatsby-transformer-yaml`, { resolve: `gatsby-source-filesystem`, options: { path: `${__dirname}/src/data/`, }, }, ], } Where the source folder ${__dirname}/src/data/ contains the…Read morereactjs – Gatsby – How to query for all YAML in a subfolder of src/data/ using GraphQL