Skip to content

Commit

Permalink
Fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
CubeyTheCube authored Apr 22, 2021
1 parent 290d69f commit c5f4620
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scratchclient/Message.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Message:
def __init__(self, data):
data["created_timestamp"] = data.pop("datetime_created")
data["actor"] = data.pop("actor_username")
self.__dict__.update(data)

0 comments on commit c5f4620

Please sign in to comment.