fix: fix/archive
#56
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ export default {
|
||||||
}[] = [];
|
}[] = [];
|
||||||
|
|
||||||
// Load all the command per categories
|
// Load all the command per categories
|
||||||
|
// TODO: Check if the command exist in the context (guild)
|
||||||
client.commands.categories.forEach((commands_name, category) => {
|
client.commands.categories.forEach((commands_name, category) => {
|
||||||
const commands = commands_name.reduce((data, command_name) => {
|
const commands = commands_name.reduce((data, command_name) => {
|
||||||
return data + `\`/${command_name}\`, `;
|
return data + `\`/${command_name}\`, `;
|
||||||
|
@ -70,6 +71,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a command is specified
|
// If a command is specified
|
||||||
|
// TODO: Check if the command exist in the context (guild)
|
||||||
const command = client.commands.list.get(desired_command);
|
const command = client.commands.list.get(desired_command);
|
||||||
if (!command) {
|
if (!command) {
|
||||||
// Command don't exist
|
// Command don't exist
|
||||||
|
|
Loading…
Reference in a new issue