More more debugging

This commit is contained in:
unknown 2023-03-13 18:58:47 +01:00
parent 6236724e13
commit 6c99900fe4

View File

@ -103,9 +103,14 @@ class Recruitment(commands.Cog):
return return
# Send the embed to the application channel # Send the embed to the application channel
application_channel = await self.config.guild(guild).application_channel_id() application_channel_id = await self.config.guild(guild).application_channel_id()
if not application_channel: if not application_channel_id:
await author.send("The application channel has not been set. Please use the `setapplicationchannel` command to set it.") 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 return
try: try: