Skip to content

Commit

Permalink
✨ Add sent at to msg prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed May 4, 2022
1 parent 91905ff commit 5724f3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types/MessageData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface MessageData {
embeds?: MessageEmbed[];
files?: FileOptions[];
pinned?: boolean;
sentAt: Date;
}
3 changes: 2 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export async function fetchChannelMessages (channel: TextChannel | NewsChannel |
content: msg.cleanContent,
embeds: msg.embeds,
files,
pinned: msg.pinned
pinned: msg.pinned,
sentAt: msg.createdAt.toISOString(),
});
}));
}
Expand Down

0 comments on commit 5724f3f

Please sign in to comment.