text: const Discord = require("discord.js")
  const {
      Permissions
  } = require('discord.js');
  
  module.exports = {
      name: "say",
      description: "Makes bot say a message in a channel",
      usage: "?say [#channel] [msg]",
      execute(bot, message, args) {
  
          if (!message.member.permissions.has(Permissions.FLAGS.MANAGE_CHANNELS)) return message.reply("Sorry, you don't have access to that command.");
          if (!args[0]) return message.reply("Specify a channel id to send message to.");
          if (!args[1]) return message.reply("Please specify a message to send.");
  
          let argsresult = args.slice(1).join(" ");
          let mChannel = message.guild.channels.cache.get(args[0]);
          if (!mChannel) return message.reply("Channel id given cannot be found.")
  
          mChannel.send(argsresult);
  
      }
  }