Merge pull request #41 from smyalygames/main

feat(arabot): made time display when showing sus note nicer
This commit is contained in:
Anthony
2022-07-28 05:09:59 +01:00
committed by GitHub

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,
);