birthday fixes

This commit is contained in:
2024-09-28 21:31:22 -04:00
parent de9e184668
commit cac2bbab2f
2 changed files with 5 additions and 4 deletions

View File

@@ -95,6 +95,8 @@ class Birthday(commands.Cog):
birthday_channel_id = await self.config.guild(ctx.guild).birthday_channel()
if birthday_channel_id:
channel = self.bot.get_channel(birthday_channel_id)
if not channel: # If the set channel doesn't exist anymore
channel = ctx.channel
else:
channel = ctx.channel