ras
Explore posts from serversDIdiscord.js - Imagine ❄
•Created by ras on 2/1/2024 in #djs-questions
What's the preferred way of accessing collections in a command file?
Currently I have something like this
Where I just send the collections along when I execute the command from the main file, depending on the command but this feels a bit hacky, as does having a separate file exporting collections. What should I be doing? Thanks!
npm list discord.js: 14.14.1
node -v: v21.1.0
16 replies