Show owner command to the owner ( couldn't find a more elegant way to do it )
This commit is contained in:
parent
dc248cdb57
commit
c9a2cd520c
1 changed files with 21 additions and 8 deletions
|
@ -76,7 +76,19 @@ class HelpCommand extends Command {
|
||||||
.setFooter(`All the available prefix: ${prefix.join(' | ')}`);
|
.setFooter(`All the available prefix: ${prefix.join(' | ')}`);
|
||||||
|
|
||||||
for (const category of this.handler.categories.values()) {
|
for (const category of this.handler.categories.values()) {
|
||||||
const title = {
|
let title;
|
||||||
|
if (message.author.id == this.client.ownerID) {
|
||||||
|
title = {
|
||||||
|
general: '📝\u2000General',
|
||||||
|
fun: '🎉\u2000Fun',
|
||||||
|
minigame: '🕹\u2000Minigames (WIP)',
|
||||||
|
images: '🖼\u2000Images',
|
||||||
|
utility: '🔩\u2000Utility',
|
||||||
|
admin: '⚡\u2000Admin',
|
||||||
|
owner: '🛠️\u2000Owner',
|
||||||
|
}[category.id];
|
||||||
|
} else {
|
||||||
|
title = {
|
||||||
general: '📝\u2000General',
|
general: '📝\u2000General',
|
||||||
fun: '🎉\u2000Fun',
|
fun: '🎉\u2000Fun',
|
||||||
minigame: '🕹\u2000Minigames (WIP)',
|
minigame: '🕹\u2000Minigames (WIP)',
|
||||||
|
@ -84,6 +96,7 @@ class HelpCommand extends Command {
|
||||||
utility: '🔩\u2000Utility',
|
utility: '🔩\u2000Utility',
|
||||||
admin: '⚡\u2000Admin',
|
admin: '⚡\u2000Admin',
|
||||||
}[category.id];
|
}[category.id];
|
||||||
|
}
|
||||||
|
|
||||||
if (title) embed.addField(title, `\`${category.map(cmd => cmd.aliases[0]).join('` `')}\``);
|
if (title) embed.addField(title, `\`${category.map(cmd => cmd.aliases[0]).join('` `')}\``);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue