I'm trying to make my Discord Bot Reply when a user sends an Image in Chat

I have a working discord bot that responds to people and I'm even getting it to tell me the weather and time of a specific Zip code through a slash command. But I'm having trouble getting it to reply when someone sends an image. I want the discord bot to reply with "Looks like someone is sending..." when a user uploads an image into a channel. Can anyone help a brotha out? I found a few solutions but they're like 5+ years old and I'm not getting anywhere with them.
d.js toolkit40d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
d.js docs40d ago
:property: Message#attachments A collection of attachments in the message - e.g. Pictures - mapped by their ids. (more...)
Arkst0rm40d ago
I've already got all of that. I just cant seem to get the bot to register that someone has sent a pic like i have it set up as if (message.content.includes(//not sure what to put here)) { i see. thank you!!
Want results from more Discord servers?
Add your server
More Posts
Can you use variable in embedBuilder name and description?I have a embedBuilder instance and It doesn't seem to work. const embed = new EmbedBuilder() Bot stopped workingmy bot suddenly stopped working, it says 'application did not respond' when i try to run any commandHow to get the user id, username, nick when mentioned by another userI tried `m.mentions.members.first()` but to no avail it didn't work as expected due to the `mentionsShifts logsHello, I've been thinking of adding a command to my bot that logs people's shifts. The concept is tDiscordAPIError[10008]: Unknown Message} /root/bots/Synth/node_modules/@discordjs/rest/dist/index.js:640 throw new DiscordAPIError(daim still new to all this and cant install node.js to discord and need some help if possibleim sorry for asking this but all videos are so confusing and dont show all the stepsmember.setNickname or member.roles.add occasionally not workingHi all, What reasons are there for a nickname potentially not being applied, or a role potentially I have an error in my botHello, sorry for the inconvenience, but I have a problem with my bot, since it turns off due to an eButton QuestionHow can i make a button never expire?Commands not refreshing after being correctly deployedGood evening. I'm developing a discord.js bot using typescript. I am having trouble using my deployeguild.guildScheduledEventUserAdd event failing to fire consistentlyI am having an issue with the guildScheduledEventUserAdd event. It seems to trigger sometimes but whWhere do I start from?Hi, Can y'all share some helpful resouces with me so that I can understand and learn about npmjs?? THelp me plsCode: Error: `[WARNING] The command at C:\Users\OE104655\Videos\Eendsmp bot\commands\utility\giveawHelp me plsIdk whats wrong with this line of code: `const client = new Client({ intents: [GatewayIntentBits.Gui