Update message.ts

This commit is contained in:
Skillz4Killz
2020-05-15 22:29:29 -04:00
committed by GitHub
parent be3730c9be
commit 44a1c428f2
+1
View File
@@ -14,6 +14,7 @@ export function createMessage(data: MessageCreateOptions) {
return {
...data,
raw: data,
mentions: data.mentions.map(user => createUser(user)),
author: createUser({ ...data.author, avatar: data.author.avatar || "" }),
timestamp: Date.parse(data.timestamp),
editedTimestamp: data.edited_timestamp