Ready event does not run
10 Replies
it doesn't log anything
is the file in the right folder?
also instead of using client in there try using container.client
should the file be specifically in a folder named
listeners
?yes
Sapphire Framework
Creating your own listeners | Sapphire
Similar to what you learned in both Creating Commands and [Creating
or else sapphire wont know where to look
okay
got it
thanks
Solution
Had to put the event file in
Listeners
folderFYI ready is the only event that receives client. https://discord.js.org/docs/packages/discord.js/14.14.1/Client:Class#ready
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
yeah i didnt see any examples on the GitHub using client in there so i was just being safe lol
good to know