Fix the help command
This commit is contained in:
parent
8d59ac37a6
commit
4915420c90
1 changed files with 3 additions and 2 deletions
|
@ -85,6 +85,7 @@ export default {
|
||||||
const object = { };
|
const object = { };
|
||||||
for (const command of client.commands.values()) {
|
for (const command of client.commands.values()) {
|
||||||
if (command.category === 'secret') continue;
|
if (command.category === 'secret') continue;
|
||||||
|
if (interaction.user.id !== ownerId && command.category === 'owner') continue;
|
||||||
if (object[command.category]) {
|
if (object[command.category]) {
|
||||||
object[command.category].push(command.data.name);
|
object[command.category].push(command.data.name);
|
||||||
}
|
}
|
||||||
|
@ -95,7 +96,7 @@ export default {
|
||||||
|
|
||||||
for (const category in object) {
|
for (const category in object) {
|
||||||
let title;
|
let title;
|
||||||
if (interaction.user.id == ownerId) {
|
if (interaction.user.id === ownerId) {
|
||||||
title = {
|
title = {
|
||||||
fun: '🎉\u2000Fun',
|
fun: '🎉\u2000Fun',
|
||||||
utility: '🔩\u2000Utility',
|
utility: '🔩\u2000Utility',
|
||||||
|
@ -110,7 +111,7 @@ export default {
|
||||||
admin: '⚡\u2000Admin',
|
admin: '⚡\u2000Admin',
|
||||||
}[category];
|
}[category];
|
||||||
}
|
}
|
||||||
|
console.log(title);
|
||||||
embed.addFields({ name: title, value: `\`${object[category].join('` `')}\`` });
|
embed.addFields({ name: title, value: `\`${object[category].join('` `')}\`` });
|
||||||
}
|
}
|
||||||
return interaction.reply({ embeds: [embed] });
|
return interaction.reply({ embeds: [embed] });
|
||||||
|
|
Loading…
Reference in a new issue