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

@@ -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}`);