diff --git a/discordbot/titanembeds/database/__init__.py b/discordbot/titanembeds/database/__init__.py index bca6b8b..8b3b2c0 100644 --- a/discordbot/titanembeds/database/__init__.py +++ b/discordbot/titanembeds/database/__init__.py @@ -69,7 +69,7 @@ class DatabaseInterface(object): def get_message_author(self, message): author = message.author - if author.nick is not None: + if hasattr(author, 'nick') and author.nick: author.name = author.nick obj = { "username": author.name,