fix author recursion because apparently msg.author can be None
@@ -100,7 +100,8 @@ class Message(DictSerializerMixin):
if self._json.get("timestamp")
else datetime.utcnow()
)
- self.author = User(**self._json.get("author"))
+ if self._json.get("author"):
+ self.author = User(**self._json.get("author")) # else attribute error.
class Emoji(DictSerializerMixin):
