RemyK888/discord-together

DeprecationWarning messageCreate

Closed this issue ยท 11 comments

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)

Hello;

I thiking you are using discord.js v13
In v13 message event is changed with messageCreate
You need to make your message event's messageCreate

That's it

On Discord.js 13 the message event changed to messageCreate

Also, which discord-together version are you using?

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)

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)

@DaSussy I used the commands from the readme.md.

I have been trying to change to messageCreate. But it did gave me other errors. I found multiple places to change it. But you say its just one line. I dont really know what exactly I have to change and where. Can you guide me with the filename or place I need to change this please?

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)

@DaSussy I used the commands from the readme.md.

I have been trying to change to messageCreate. But it did gave me other errors. I found multiple places to change it. But you say its just one line. I dont really know what exactly I have to change and where. Can you guide me with the filename or place I need to change this please?

do you have a command handler?

@DaSussy I dont know what that is. I used cmd to install the requirements. Then started the bot also thru the same cmd window.

@DaSussy I dont know what that is. I used cmd to install the requirements. Then started the bot also thru the same cmd window.

change client.on("message") to client.on("messageCreate")

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

Don't change this, it would break v12 users..... its depreciated so it would still work

hey meant to change it in the code example

Or maybe can I make 2 code example ?
V12 and V13 ?