Velenosoh
Velenosoh
DIAdiscord.js - Imagine an app
Created by Velenosoh on 4/11/2024 in #djs-questions
Register Global Command
Hi everyone, this code takes care of recording all commands globally. However, currently it doesn't work, in the console it only prints the message of the start of recording the commands but never the completion message without even giving an error, in fact the commands are not visible. I am 100% sure that the code is correct since by changing the application, i.e. by changing the token and the client id, it works correctly and records all the commands. I'm also sure of it from the fact that it also worked in this same application that is now giving me this problem. But then how is it possible that it suddenly doesn't work anymore? The problem started when I created a command that reloaded the commands, as when starting the bot, using the exact same script and running it a couple of times I realized that the code that was supposed to load them at startup was no longer working. Code:
101 replies