question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DeprecationWarning messageCreate

See original GitHub issue

After I start the bot and I send a text message in any channel. I get this error.

(node:9360) DeprecationWarning: The message event is deprecated. Use messageCreate instead (Use node --trace-deprecation …to show where the warning was created)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Whirl21commented, Aug 16, 2021

On Discord.js 13 the message event changed to messageCreate

Also, which discord-together version are you using?

Yes and the message event was deprecated so you would continue to recieve the warning until you switch to messageCreate (takes one line to switch)

1reaction
RemyK888commented, Aug 22, 2021

Yeah, sorry, I’m going to update the code example

Read more comments on GitHub >

github_iconTop Results From Across the Web

The message event is deprecated. Use messageCreate ...
I found the answer to your question, even if it wasn't what was causing your problem. Where you have client.on('message', message =>.
Read more >
The message event is deprecated. Use messageCreate ...
Hey guys, I keep getting this err: DeprecationWarning: The message event is deprecated. Use messageCreate instead at MessageCreateAction.handle…
Read more >
DeprecationWarning: The message event is deprecated. Use ...
The message event has been renamed to messageCreate . Using message will still work, but you'll receive a deprecation warning until you switch...
Read more >
Updating from v12 to v13 - discord.js Guide
The message event has been renamed to messageCreate , to bring the ... but you'll receive a deprecation warning until you switch over....
Read more >
I cannot figure out where the warning was created ...
DeprecationWarning : The message event is deprecated. Use messageCreate instead at MessageCreateAction.handle ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found