#message.delete() validation error.

8 messages · Page 1 of 1 (latest)

pliant jackal
#
client.on("messageCreate", async (message) => {
  message.delete()
})

will often delete the message but will also crash with :

Uncaught ValidationError Error: Expected the value to be an object, but received string instead
formal valeBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

ashen swift
#

the error is coming from somewhere else

pliant jackal
#

mmm maybe.

#

I'll look further.

ashen swift
#

there's a stacktrace under the error message

pliant jackal
#

I looked but could not find any usefull information in there.

noble cradle
#

Send the whole thing