flattened results in data_type

This commit is contained in:
Klemek
2021-04-09 18:04:36 +02:00
parent 2062f08721
commit 90a26bcc9c
5 changed files with 115 additions and 119 deletions
+1
View File
@@ -94,5 +94,6 @@ class ChannelLogs:
channel = dict(self.__dict__)
channel.pop("channel", None)
channel.pop("guild", None)
channel.pop("start_date", None)
channel["messages"] = [message.dict() for message in self.messages]
return channel