Added comment

Explained meaning of the boolean in deploy_commands()
This commit is contained in:
Ninjdai 2023-04-24 20:38:45 +02:00 committed by GitHub
parent a922032142
commit 22ec12a1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);