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.",
};

@@ -31,17 +31,45 @@
 d) =%3E %7B%0A
-%0A
+    let Channel = null;%0A  %0A  
   if (gu
@@ -158,16 +158,18 @@
 d); %7D%0A  
+ 
+ 
 if (guil
@@ -261,16 +261,18 @@
 l%22); %7D %0A
+  
   else %7B
@@ -358,17 +358,21 @@
 S%22)); %7D%0A
+  
 %0A
+  
   return
@@ -384,16 +384,18 @@
 nel;%0A%7D;%0A
+  
 %0Amodule.
@@ -434,16 +434,18 @@
 : %5B%5D %7D;%0A
+  
 %0Amodule.
@@ -461,16 +461,18 @@
 elp = %7B%0A
+  
   name: 
@@ -489,16 +489,18 @@
 annel%22,%0A
+  
   type: 
@@ -512,16 +512,18 @@
 tions%22,%0A
+  
   descri

Update defaultChannel.js