ntb896
ntb896
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
Is there any way to avoid application commands being sent at the same time? For example, when two different users use two application commands at the same time (or almost the same time, around ~1 second), only one will activate the command successfully, the other's command will not be activate. Here are some main scripts of my bot and two commands for illustration. I used the guide from https://discordjs.guide/ for most of the scripts. index.js: https://srcb.in/e254B2JQb5 ready.js: https://srcb.in/XD5GVVRDUp interactionCreate.js: https://srcb.in/jtu3GnanzQ Commands: https://srcb.in/Qoa2iQU3mh https://srcb.in/BVrRxTrLP2
22 replies