Removed some useless things
This commit is contained in:
parent
5a43d46975
commit
84aaeefe00
1 changed files with 7 additions and 16 deletions
|
@ -139,22 +139,13 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const category in object) {
|
for (const category in object) {
|
||||||
let title;
|
const title = {
|
||||||
if (interaction.user.id === ownerId) {
|
|
||||||
title = {
|
|
||||||
fun: '🎉\u2000Fun',
|
fun: '🎉\u2000Fun',
|
||||||
utility: '🔩\u2000Utility',
|
utility: '🔩\u2000Utility',
|
||||||
admin: '⚡\u2000Admin',
|
admin: '⚡\u2000Admin',
|
||||||
owner: '🛠️\u2000Owner',
|
owner: '🛠️\u2000Owner',
|
||||||
}[category];
|
}[category];
|
||||||
}
|
|
||||||
else {
|
|
||||||
title = {
|
|
||||||
fun: '🎉\u2000Fun',
|
|
||||||
utility: '🔩\u2000Utility',
|
|
||||||
admin: '⚡\u2000Admin',
|
|
||||||
}[category];
|
|
||||||
}
|
|
||||||
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