Phantomstar
DIAdiscord.js - Imagine an app
•Created by Phantomstar on 2/2/2025 in #djs-questions
How to properly pass Sequelize table into command handler?
Thanks!
5 replies
DIAdiscord.js - Imagine an app
•Created by Phantomstar on 2/2/2025 in #djs-questions
How to properly pass Sequelize table into command handler?
thank you, ended up figuring out in my ClientReady to do the following:
// Attach the models to the client for global access in other command files
client.Keywords = Keywords;
client.ntmWinners = ntmWinners;
Which then just allowed me to reference it directly as an object of the bot client in commands.5 replies
DIAdiscord.js - Imagine an app
•Created by Phantomstar on 2/2/2025 in #djs-questions
How to properly pass Sequelize table into command handler?
discord.js@14.17.3
node v22.13.1
5 replies