Update 'commands/Info/uptime.js'

This commit is contained in:
LauraOrchid 2022-07-28 14:51:19 +00:00
parent b37159af4e
commit 041778e21e

View File

@ -1,7 +1,5 @@
const { EmbedBuilder } = require('discord.js');
const decodeTime = require('format-duration');
const packjson = require('../../package.json');
const version = packjson.dependencies['discord.js'];
module.exports = {
name: "status",
@ -11,7 +9,7 @@ module.exports = {
const embed = new EmbedBuilder()
.setColor("#FA0CF2")
.setTitle("💜 More information about laura :D")
.setDescription(`Latency: ${client.ws.ping}ms\nDiscord.js Version: ${version}\nUptime: ${decodeTime(client.uptime)}`)
.setDescription(`Latency: ${client.ws.ping}ms\nUptime: ${decodeTime(client.uptime)}`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });