Compare commits
No commits in common. "c39826ead3c2038f47727d17a0b6e825f3b7a8f1" and "dc8c0ab570aea35c37d015b1400e2bb51b24b0d1" have entirely different histories.
c39826ead3
...
dc8c0ab570
2 changed files with 8 additions and 14 deletions
|
@ -8,7 +8,7 @@ export default {
|
||||||
const filename = getFilename(__filename);
|
const filename = getFilename(__filename);
|
||||||
return new SlashCommandBuilder()
|
return new SlashCommandBuilder()
|
||||||
.setName(filename.toLowerCase())
|
.setName(filename.toLowerCase())
|
||||||
.setDescription(client.locales.get(client.config.default_lang)?.get(`c_${filename}_desc`) ?? '')
|
.setDescription(client.locales.get(client.config.default_lang)?.get(`c_${filename}_desc`) ?? '?')
|
||||||
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`))
|
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`))
|
||||||
.setDescriptionLocalizations(getLocalizations(client, `c_${filename}_desc`));
|
.setDescriptionLocalizations(getLocalizations(client, `c_${filename}_desc`));
|
||||||
},
|
},
|
||||||
|
@ -22,19 +22,13 @@ export default {
|
||||||
// Check if command exists
|
// Check if command exists
|
||||||
interaction.reply({ content: 'WIP', ephemeral: true });
|
interaction.reply({ content: 'WIP', ephemeral: true });
|
||||||
} else {
|
} else {
|
||||||
const fields = [];
|
const embed = new MessageEmbed()
|
||||||
fields.push({
|
.setColor('BLURPLE')
|
||||||
name: 'WIP',
|
.setTitle(loc.get('c_help1'))
|
||||||
value: 'WIP',
|
.setDescription(loc.get('c_help2'))
|
||||||
});
|
.addField('WIP', 'WIP');
|
||||||
|
|
||||||
interaction.reply({ embeds: [
|
interaction.reply({ embeds: [embed] });
|
||||||
new MessageEmbed()
|
|
||||||
.setColor('BLURPLE')
|
|
||||||
.setTitle(loc.get('c_help1'))
|
|
||||||
.setDescription(loc.get('c_help2'))
|
|
||||||
.addFields(fields),
|
|
||||||
] });
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
||||||
const filename = getFilename(__filename);
|
const filename = getFilename(__filename);
|
||||||
return new SlashCommandBuilder()
|
return new SlashCommandBuilder()
|
||||||
.setName(filename.toLowerCase())
|
.setName(filename.toLowerCase())
|
||||||
.setDescription(client.locales.get(client.config.default_lang)?.get(`c_${filename}_desc`) ?? '')
|
.setDescription(client.locales.get(client.config.default_lang)?.get(`c_${filename}_desc`) ?? '?')
|
||||||
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`))
|
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`))
|
||||||
.setDescriptionLocalizations(getLocalizations(client, `c_${filename}_desc`));
|
.setDescriptionLocalizations(getLocalizations(client, `c_${filename}_desc`));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue