From db081fed8aa76a69adac9f3fb6bdc5bbfda5c0a7 Mon Sep 17 00:00:00 2001 From: mudkipdev Date: Fri, 29 Sep 2023 23:12:52 -0600 Subject: [PATCH] fix video url error --- scnewsbot/extensions/announcements.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scnewsbot/extensions/announcements.py b/scnewsbot/extensions/announcements.py index 70b295b..b562eb7 100644 --- a/scnewsbot/extensions/announcements.py +++ b/scnewsbot/extensions/announcements.py @@ -543,7 +543,10 @@ class AnnouncementBuilderView(discord.ui.View): for channel_id in bot.config.repost_channels: repost_channel = await bot.fetch_channel(channel_id) - await repost_channel.send(announcement.video_url) + + if announcement.video_url: + await repost_channel.send(announcement.video_url) + await repost_channel.send( embed=await announcement.get_embed(bot=bot, show_author=True) )