discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.31k forks source link

Some stuff in Discord.js V12 not working #548

Closed Wolfyxon closed 3 years ago

Wolfyxon commented 3 years ago

Hi My bot stopped working after this update. I added .cache everywhere and it's ok But some stuff still isn't working:

Other: -client.on('ready', () => {//Some bot start code here}) function reacting slower than before update

Maybe im just doing something wrong but i cant find any help in the internet, so i think its a bug. I visited this page: https://discordjs.guide/additional-info/changes-in-v12.html#before-you-start

tipakA commented 3 years ago

For the setPresence(): https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setPresence (check what PresenceData is and/or look at the example; For the message.author: https://discordjs.guide/additional-info/changes-in-v12.html#string-concatenation;

For the ready being slower, there isn't much you can do about that, probably because library does different things before emitting ready on v12 than on v11.

Additionally, even if it would be a bug, the guide repository isn't really a place for such reports. Also, you probably should ask in the Discord server before opening issues.

Wolfyxon commented 3 years ago

Thanks! Now im 100% sure its not bug. Thanks a lot

2024 edit: forgive my past left.