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
commit 53129907ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ export class SusCommand extends Command {
.setThumbnail(user.avatarURL()!) .setThumbnail(user.avatarURL()!)
// TODO add a way to display more than 1 sus note // TODO add a way to display more than 1 sus note
.addField( .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, notes[notes.length - 1].note,
); );