mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-18 15:36:03 +01:00
add new url style
This commit is contained in:
@@ -144,10 +144,15 @@ class Announcement:
|
|||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
color=bot.config.embed_color,
|
color=bot.config.embed_color,
|
||||||
title=self.title,
|
title=self.title,
|
||||||
url=self.url,
|
|
||||||
description=self.description,
|
description=self.description,
|
||||||
)
|
)
|
||||||
embed.set_image(url=self.image_url)
|
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:
|
if EMBED_THUMBNAIL:
|
||||||
embed.set_thumbnail(url=EMBED_THUMBNAIL)
|
embed.set_thumbnail(url=EMBED_THUMBNAIL)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user