Removed some useless things

This commit is contained in:
Supositware 2022-09-02 10:00:10 +02:00
parent 5a43d46975
commit 84aaeefe00

View file

@ -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) { fun: '🎉\u2000Fun',
title = { utility: '🔩\u2000Utility',
fun: '🎉\u2000Fun', admin: '⚡\u2000Admin',
utility: '🔩\u2000Utility', owner: '🛠️\u2000Owner',
admin: '⚡\u2000Admin', }[category];
owner: '🛠️\u2000Owner',
}[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] });