master_30
master_30
DIAdiscord.js - Imagine an app
Created by master_30 on 9/16/2023 in #djs-questions
how to sync the global command manually by myself
I have a main index.js file for my bot and I have a separate file for syncing the slash commands. Since I don't want to put the syncing code into main index.js file to let the bot sync every time while starting. But when I run the main index.js file and keeping it alive, I cannot execute any code which I could't run the syncing file to register my command. (if I ctrl+c, the bot will be terminated). Any idea of how this should be done or improved?
10 replies