text: const DJS = require("discord.js");
  
  module.exports = {
    name: "stageInstanceDelete",
    async execute(bot, stageInstance) {
      try {
        if (!stageInstance.guild?.available) return;
        if (!stageInstance.guild.me?.permissions.has(DJS.Permissions.FLAGS.MANAGE_WEBHOOKS)) return;
  
        const webhook = await bot.utils.getLogHook(stageInstance.guild);
        if (!webhook) return;
  
        const embed = bot.say.logEmbed("RED")
          .setTitle("Stage Instance Deleted")
          .setDescription(
            `**Channel**: ${stageInstance.channel.name}
            **Id**: ${stageInstance.id}
            **Topic**: ${stageInstance.topic}
            **Privacy Level**: ${stageInstance.privacyLevel}
          `);
  
        await webhook.send({ embeds: [embed] });
      } catch (err) {
        return bot.utils.sendErrorLog(bot, err, "error");
      }
    }
  };