From 22ec12a1d4a9a95658e2220ad41e48fcf85e4d0d Mon Sep 17 00:00:00 2001 From: Ninjdai <65647523+Ninjdai1@users.noreply.github.com> Date: Mon, 24 Apr 2023 20:38:45 +0200 Subject: [PATCH] Added comment Explained meaning of the boolean in deploy_commands() --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index eeb2db4..87b09ad 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,11 @@ for (const file of eventFiles) { } } -deploy_commands(client, true);//true: will refresh slash commands +deploy_commands(client, true); +/* +true will refresh slash commands (SET endpoint) +false will delete them (SET endpoint with an empty array) +*/ -client.login(token); \ No newline at end of file +client.login(token);