From dcde1d685c2a0dd69099ae82f3926ee4c9a0e917 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:27:43 -0400 Subject: [PATCH] add lock time in embed --- src/commands/lock.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/lock.ts b/src/commands/lock.ts index 869443b..f67b268 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -57,6 +57,7 @@ export default class Lock extends Command { embed.addField('User', `${account.username} | <@${account.userID}>`, true); embed.addField('Supervisor', `<@${message.author.id}>`, true); if ((momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ')).length > 0) embed.addField('Reason', momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' '), true); + embed.addField('Lock Expiration', `${momentMilliseconds ? moment(expiry).format('dddd, MMMM Do YYYY, h:mm:ss A') : 'N/A'}`, true); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); message.delete();