Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated message event #3

Open
Dev-Sebi opened this issue Jan 1, 2022 · 0 comments
Open

Outdated message event #3

Dev-Sebi opened this issue Jan 1, 2022 · 0 comments

Comments

@Dev-Sebi
Copy link

Dev-Sebi commented Jan 1, 2022

Hey, someone recently hit me up on Discord asking for help with this error:

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

Updates would include:

client.on('message', (message) => {

to

client.on('messageCreate', (message) => {

Thanks
~Sebi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant