fix: fix/archive #56

Merged
loonatiny merged 9 commits from fix/archive into main 2023-01-17 22:05:39 +01:00
Showing only changes of commit 67d42e7d35 - Show all commits

View file

@ -48,6 +48,7 @@ export default {
}[] = [];
// Load all the command per categories
// TODO: Check if the command exist in the context (guild)
client.commands.categories.forEach((commands_name, category) => {
const commands = commands_name.reduce((data, command_name) => {
return data + `\`/${command_name}\`, `;
@ -70,6 +71,7 @@ export default {
}
// If a command is specified
// TODO: Check if the command exist in the context (guild)
const command = client.commands.list.get(desired_command);
if (!command) {
// Command don't exist