Compare commits
2 commits
dc8c0ab570
...
c39826ead3
Author | SHA1 | Date | |
---|---|---|---|
c39826ead3 | |||
e15176123e |
2 changed files with 14 additions and 8 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,13 +22,19 @@ 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 embed = new MessageEmbed()
|
const fields = [];
|
||||||
|
fields.push({
|
||||||
|
name: 'WIP',
|
||||||
|
value: 'WIP',
|
||||||
|
});
|
||||||
|
|
||||||
|
interaction.reply({ embeds: [
|
||||||
|
new MessageEmbed()
|
||||||
.setColor('BLURPLE')
|
.setColor('BLURPLE')
|
||||||
.setTitle(loc.get('c_help1'))
|
.setTitle(loc.get('c_help1'))
|
||||||
.setDescription(loc.get('c_help2'))
|
.setDescription(loc.get('c_help2'))
|
||||||
.addField('WIP', 'WIP');
|
.addFields(fields),
|
||||||
|
] });
|
||||||
interaction.reply({ embeds: [embed] });
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -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