mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-16 22:46:03 +01:00
add new url style
This commit is contained in:
@@ -144,10 +144,15 @@ class Announcement:
|
||||
embed = discord.Embed(
|
||||
color=bot.config.embed_color,
|
||||
title=self.title,
|
||||
url=self.url,
|
||||
description=self.description,
|
||||
)
|
||||
embed.set_image(url=self.image_url)
|
||||
|
||||
if self.url and self.description:
|
||||
embed.description = f"{self.url}\n\n" + embed.description
|
||||
elif self.url:
|
||||
embed.description = self.url
|
||||
|
||||
if EMBED_THUMBNAIL:
|
||||
embed.set_thumbnail(url=EMBED_THUMBNAIL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user