forked from snxraven/DiscordJS-v14-Template
Update 'commands/Info/uptime.js'
This commit is contained in:
parent
b37159af4e
commit
041778e21e
@ -1,7 +1,5 @@
|
|||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const decodeTime = require('format-duration');
|
const decodeTime = require('format-duration');
|
||||||
const packjson = require('../../package.json');
|
|
||||||
const version = packjson.dependencies['discord.js'];
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "status",
|
name: "status",
|
||||||
@ -11,7 +9,7 @@ module.exports = {
|
|||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor("#FA0CF2")
|
.setColor("#FA0CF2")
|
||||||
.setTitle("💜 More information about laura :D")
|
.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()
|
.setTimestamp()
|
||||||
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
|
||||||
interaction.followUp({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
|
Loading…
Reference in New Issue
Block a user