Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
add description
Browse files Browse the repository at this point in the history
  • Loading branch information
0/0 committed Jan 27, 2021
1 parent 6744238 commit e91d4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e91d4c9

Please sign in to comment.