How to fix this code

Question:
I am unable to setup embed cmds on my code
Repl link:

My handler.

const { glob } = require("glob");
const { promisify } = require("util");
const globPromise = promisify(glob);
const BOT = require("./Client");


module.exports = async (client) => {

  // LOADING SLASH COMMANDS
  try {
    let arrayOfcommands = [];
    const commandFiles = await globPromise(
      `${process.cwd()}/Commands/Slash/**/*.js`
    );
    commandFiles.map((value) => {
      const file = require(value);
      const splitted = value.split("/");
      const directory = splitted[splitted.length - 2];
      const properties = { directory, ...file };
      client.commands.set(file.name, properties);
      arrayOfcommands.push(file);
    });

    let i = null
    client.on("ready", async () => {
      await client.application.commands.set(arrayOfcommands);
    });
  console.log("_______________________________")
  console.log(`${client.commands.size} Slash Commands Loaded`);
  console.log("_______________________________")
  
  } catch (e) {
    console.log(e);
  }

  // LOADING MESSAGE COMMANDS
  try {
    const MessageCommadsFiles = await globPromise(
      `${process.cwd()}/Commands/Message/**/*.js`
    );
    MessageCommadsFiles.map((value) => {
      const file = require(value);
      const splitted = value.split("/");
      const directory = splitted[splitted.length - 2];
      const properties = { directory, ...file };
      client.mcommands.set(file.name, properties);
      if (file.aliases && Array.isArray(file.aliases))
        file.aliases.forEach((a) => client.aliases.set(a, file.name));
    });

    console.log(`${client.mcommands.size} Message Commands Loaded`);
  console.log("_______________________________")
    
  } catch (e) {
    console.log(e);
  }
  // Loading Event Files
  try {
    const eventFiles = await globPromise(`${process.cwd()}/events/*.js`);
    eventFiles.map((value) => require(value));
    console.log(`${eventFiles.length} Events Loaded`);
  console.log("_______________________________")
    
  } catch (e) {
    console.log(e);
  }
};

// ... (existing code)

// LOADING MESSAGE COMMANDS
try {
  module.exports = async (client) => {
  // ... existing code

  // LOADING SLASH COMMANDS
  // ... existing slash commands loading logic

  // LOADING MESSAGE COMMANDS
  // ... existing message commands loading logic, which is the correct place for it
  
  // Loading Event Files
  // ... existing event files loading logic
  
  // end of module.exports
};

// ... (rest of the existing code)
const MessageCommadsFiles =  globPromise(

    `${process.cwd()}/Commands/Message/**/*.js`
  );
  MessageCommandsFiles.map((value) => {
    const file = require(value);
    const splitted = value.split("/");
    const directory = splitted[splitted.length - 2];
    const properties = { directory, ...file };
    client.mcommands.set(file.name, properties);
    if (file.aliases && Array.isArray(file.aliases))
      file.aliases.forEach((a) => client.aliases.set(a, file.name));
  });

  // Load the embed command
  const embedCommand = require('./embed');
  client.mcommands.set(embedCommand.name, embedCommand);

  console.log(`${client.mcommands.size} Message Commands Loaded`);
  console.log("_______________________________");

} catch (e) {
  console.log(e);
}

// ... (rest of the existing code)
const { MessageEmbed } = require('discord.js');

module.exports = {
  name: 'embed',
  description: 'Create an embedded message',
  execute(message, args) {
    // Your embed logic here
    const embed = new MessageEmbed()
      .setTitle('Embed Title')
      .setDescription('Embed Description')
      .setColor('#0099ff');

    // Send the embed to the same channel
    message.channel.send(embed);
  },
};

Hello @teneshasqyyc and welcome to the community!

Can you provide the link to your repl?