feat(arabot): made time display when showing sus note nicer

This commit is contained in:
Anthony 2022-07-28 05:09:35 +01:00
parent 2fa559113a
commit 2dcef435b1

View File

@ -296,7 +296,7 @@ export class SusCommand extends Command {
.setThumbnail(user.avatarURL()!)
// TODO add a way to display more than 1 sus note
.addField(
`Sus ID: ${notes[notes.length - 1].id} | Moderator: ${mod} Date: ${notes[notes.length - 1].time}`,
`Sus ID: ${notes[notes.length - 1].id} | Moderator: ${mod} Date: <t:${Math.floor(notes[notes.length - 1].time.getTime() / 1000)}>`,
notes[notes.length - 1].note,
);