From e91d4c951312484f262677824ffd19a21f38d8ae Mon Sep 17 00:00:00 2001 From: 0/0 Date: Wed, 27 Jan 2021 15:55:57 -0700 Subject: [PATCH] add description --- utils/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/news.py b/utils/news.py index 30c2fed..751cbc0 100644 --- a/utils/news.py +++ b/utils/news.py @@ -103,7 +103,7 @@ def __init__(self, data): async def format_page(self, menu: menus.MenuPages, page): offset = menu.current_page * self.per_page news_item = self.entries[offset] - e = Embed(title=news_item["title"], url=news_item["url"]) + e = Embed(title=news_item["title"], url=news_item["url"], description=news_item["description"]) author = f"{news_item['source']['name']} | {news_item['author']}" if news_item["author"] else \ str(news_item['source']['name']) e.set_author(name=author)