Skip to content

Commit

Permalink
Fix poll timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSegal855 committed Jan 21, 2024
1 parent 6aa0717 commit 2afd206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/fun/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class PollCommand extends SteveCommand {
}

return interaction.reply({
content: `## Votes as of ${time(Date.now(), TimestampStyles.ShortDateTime)}
content: `## Votes as of ${time(new Date(), TimestampStyles.ShortDateTime)}
${poll.choices.map((choice, idx) => `${NUMBER_EMOTES[idx]} ${choice.voters.map(userMention).join(', ')}`).join('\n')}`,
allowedMentions: {},
ephemeral: true
Expand Down

0 comments on commit 2afd206

Please sign in to comment.