Doing small tweaks

This commit is contained in:
2023-03-16 16:59:02 +01:00
parent 4d25d2b6c9
commit 69f2849cc2
5 changed files with 49 additions and 17 deletions

View File

@@ -108,8 +108,7 @@ module.exports = {
if (answer1.first().content > 16) {
await user.send({
embeds: [{
description: "That is not a valid Minecraft username.\n" +
"Application cancelled.",
description: "¸Max character limit is 16.",
color: embedColor
}]
})
@@ -164,6 +163,7 @@ module.exports = {
color: embedColor
}]
})
return
}
if (answer2.size === 0) {
await user.send({ embeds: [tooLong] })

View File

@@ -26,6 +26,7 @@ module.exports = {
.setLabel('Deny Reason')
.setCustomId('denyreason')
.setStyle(TextInputStyle.Paragraph)
.setPlaceholder('Enter a reason for denying the application')
)
)

View File

@@ -17,7 +17,7 @@ module.exports = {
const applicantId = channel.topic;
const guild = interaction.guild;
const applicant = await guild.members.fetch(applicantId);
const reason = interaction.fields.fields.get('denyreason').value;
const reason = interaction.fields.fields.get('denyreason').value ?? "No reason provided";
const embedColor = Number(color.replace("#", "0x"));
const filePath = path.join(__dirname, `../../applications/${applicantId}`);