aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jakeHebert <[email protected]>2019-08-16 15:49:34 -0400
committerGravatar jakeHebert <[email protected]>2019-08-16 15:49:34 -0400
commite4038b467898e6d78da7dda24f9fa7e1958ac448 (patch)
tree2e8fe4035c621903c3a69da6ea0d06efd362b4f2
parentcleaned up code, changed json fieldnames, changed command name/alias (diff)
added validation for Embed author formatting
-rw-r--r--bot/seasons/evergreen/recommend_game.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/recommend_game.py b/bot/seasons/evergreen/recommend_game.py
index 30a538a5..398da376 100644
--- a/bot/seasons/evergreen/recommend_game.py
+++ b/bot/seasons/evergreen/recommend_game.py
@@ -37,7 +37,8 @@ class RecommendGame(commands.Cog):
# Creating and formatting Embed
embed = discord.Embed(color=discord.Colour.blue())
- embed.set_author(name=author.name, icon_url=author.avatar_url)
+ if author is not None:
+ embed.set_author(name=author.name, icon_url=author.avatar_url)
embed.set_image(url=game['image'])
embed.add_field(name='Recommendation: ' + game['title'] + '\n' + game['link'], value=game['description'])