mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Update message.ts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user