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) {
|
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] });
|
||||||
|
|
Loading…
Reference in a new issue