Home > Enterprise >  I get error while making a status command in discord.js
I get error while making a status command in discord.js

Time:03-30

I was making a status command for my discord bot, that returns title, description, and some fields.

I ran into an error. I am using discord.js v13 and Node.js v16.14.2.

My code:

const { MessageEmbed, CommandInteraction, Client, version } = require("discord.js");
const { connection } = require("mongoose");
const os = require("os");
const quick = require('quick.db');

module.exports = {
    name: "status",
    asliases: [],
    permissions: [],
    description: "Displays the status of the client",

    async execute(message, args, cmd, client, Discord, profileData) {
        const messagePing = Date.now();
        const endMessagePing = Date.now() - messagePing;
        const status = [
            "Disconnected",
            "Connected",
            "Connecting",
            "Disconnecting"
        ];
        const embed = new MessageEmbed()
            .setColor("RANDOM")
            .setTitle(`           
  • Related