From 6c99900fe45c3032c9123cdae1592b2239dfc760 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Mar 2023 18:58:47 +0100 Subject: [PATCH] More more debugging --- recruitmentCog/recruitment.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index 4a88a49..f89f4c3 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -101,11 +101,16 @@ class Recruitment(commands.Cog): if member is None: await author.send("You need to join the server before your application can be processed.") return - + # Send the embed to the application channel - application_channel = await self.config.guild(guild).application_channel_id() - if not application_channel: - await author.send("The application channel has not been set. Please use the `setapplicationchannel` command to set it.") + application_channel_id = await self.config.guild(guild).application_channel_id() + if not application_channel_id: + await author.send("The application channel has not been set. Please use the `setapplicationschannel` command to set it.") + return + + application_channel = guild.get_channel(application_channel_id) + if application_channel is None: + await author.send(f"The application channel with ID {application_channel_id} could not be found.") return try: