Skip to content

Commit

Permalink
fix: Remove timestamps from embeds #5
Browse files Browse the repository at this point in the history
Embed TS isn't very useful to begin with since this is a digest format so remove any confusion around when "added to" occurs by removing the TS entirely.\
  • Loading branch information
FoxxMD committed Sep 5, 2023
1 parent db9ea35 commit 0f87c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discord/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ export const convertEventsToEmbeds = (currEvents: (APIEmbed)[], options: Discord

for (const origEvent of currEvents) {
// deep clone
const event = new EmbedBuilder(origEvent); // JSON.parse(JSON.stringify(origEvent)) as APIEmbed;
const {timestamp, ...cleanEvent} = origEvent;
const event = new EmbedBuilder(cleanEvent); // JSON.parse(JSON.stringify(origEvent)) as APIEmbed;

if (embeds.length === 9) {
if (overflowList.length === overflowTruncate) {
Expand Down

0 comments on commit 0f87c08

Please sign in to comment.