mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-11-06 14:45:07 +00:00
fix video url error
This commit is contained in:
1 parent
47fb8be77f
commit
db081fed8a
1 file changed
+4
-1
@@ -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