From 784de43b34fe91517e130e455595435b8e124c47 Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 1 Apr 2023 09:05:47 +0200 Subject: [PATCH] Buug fix --- events/buttons/guilapply.js | 2 +- events/buttons/guildapplicationaccept.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/events/buttons/guilapply.js b/events/buttons/guilapply.js index a4326e4..6104eda 100644 --- a/events/buttons/guilapply.js +++ b/events/buttons/guilapply.js @@ -161,7 +161,7 @@ module.exports = { await user.send({ embeds: [attachments] }); return } - if (answer2.first().content > 8) { + if (answer2.first().content.size > 8) { await user.send({ embeds: [{ description: "Max character limit is 8.", diff --git a/events/buttons/guildapplicationaccept.js b/events/buttons/guildapplicationaccept.js index a5b6eed..6c8dceb 100644 --- a/events/buttons/guildapplicationaccept.js +++ b/events/buttons/guildapplicationaccept.js @@ -24,7 +24,6 @@ module.exports = { const applicant = await guild.members.fetch(applicantId) const applicantUsername = applicant.user.username + "#" + applicant.user.discriminator; - const applicationFile = require(`../../apps/guild/${applicantId}`); await message.edit({ components: [