mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Show how long a call lasted at the end
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const moment = require('moment');
|
||||
require('moment-duration-format');
|
||||
|
||||
module.exports = class PhoneInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -28,7 +26,7 @@ module.exports = class PhoneInfoCommand extends Command {
|
||||
.addField('❯ Recipient Channel', `#${otherChannel.name}`, true)
|
||||
.addField('❯ Recipient Server', otherChannel.guild.name, true)
|
||||
.addField('❯ Recipient ID', otherChannel.id, true)
|
||||
.addField('❯ Call Duration', moment.duration(Date.now() - call.timeStarted).format('hh[h]mm[m]ss[s]'), true)
|
||||
.addField('❯ Call Duration', call.durationDisplay, true)
|
||||
.addField('❯ Admin Call?', call.ownerOrigin ? 'Yes' : 'No', true)
|
||||
.addField('❯ Started By', call.startUser.tag, true);
|
||||
return msg.embed(embed);
|
||||
|
||||
Reference in New Issue
Block a user