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

9 messages · Page 1 of 1 (latest)

jade prawn
#

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.

little moatBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
cold elkBOT
vestal saffron
#

You‘d need the messageCreate event as well as GuildMessages and MessageContent intent if you don’t already use that anyway

jade prawn
#

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)) {

vestal saffron
#

Nothing. Images are attachments, not content

#

I didn‘t send the docs link for no reason