module.exports = (client, guild) => {

  if (guild.channels.exists("id", guild.id)) { Channel = guild.channels.find("id", guild.id); }
  if (guild.channels.exists("name", "general")) { Channel = guild.channels.find("name", "general"); } 
  else { Channel = guild.channels.find(c=> c.permissionsFor(guild.me).has("SEND_MESSAGES")); }

  return Channel;
};

module.exports.conf = { requiredModules: [] };

module.exports.help = {
  name: "defaultChannel",
  type: "functions",
  description: "Searchs for the 'default' channel of the server.",
};

module.exports = (client, guild) => {
    let Channel = null;
  
    if (guild.channels.exists("id", guild.id)) { Channel = guild.channels.find("id", guild.id); }
    if (guild.channels.exists("name", "general")) { Channel = guild.channels.find("name", "general"); } 
    else { Channel = guild.channels.find(c=> c.permissionsFor(guild.me).has("SEND_MESSAGES")); }
  
    return Channel;
};
  
module.exports.conf = { requiredModules: [] };
  
module.exports.help = {
    name: "defaultChannel",
    type: "functions",
    description: "Searchs for the 'default' channel of the server.",
};

Update defaultChannel.js