1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Correct attribute lookup on owner

This commit is contained in:
phxntxm 2017-07-11 14:36:24 -05:00
parent fab533c07a
commit 048af76400

View file

@ -183,7 +183,7 @@ class Miscallaneous:
# Set the owner
embed = discord.Embed(**opts)
if hasattr(self.bot, 'owner'):
embed.set_author(name=str(self.bot.owner), icon_url=self.bot.avatar_url)
embed.set_author(name=str(self.bot.owner), icon_url=self.bot.owner.avatar_url)
# Setup the process statistics
name = "Process stats"