mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-16 22:46:03 +01:00
fix video url error
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user