title: How to send a message to a specific discord channel?
body: <p>Hello I have just started out with creating a discord bot. I have code, that I copied from a tutorial online, which when I enter <code>!play</code> on my discord server anywhere, it will have a bot say <code>"@everyone We are playing! :)"</code>. </p>
  
  <p>I would like for it to work in a way so that when I enter <code>!play</code> in the bot channel it messages the <code>looking-for-game channel</code>. I will paste my whole code however I think the important part is:</p>
  
  <pre><code>bot.sendMessage({
    to: channelID,
    message: '@everyone The Owner, Admins and The OGs are playing Mass Effect Andromeda! Come play with them! :smiley:'
  });
  </code></pre>
  
  <p>Is there a way to get it to send to a specific channel instead of <code>channelID</code>?<br>
  Here is the whole code if a solution requires it.</p>
  
  <pre><code>var Discord = require('discord.io');
  var logger = require('winston');
  var auth = require('./auth.json');
  // Configure logger settings
  logger.remove(logger.transports.Console);
  logger.add(new logger.transports.Console, {
    colorize: true
  });
  logger.level = 'debug';
  // Initialize Discord Bot
  var bot = new Discord.Client({
    token: auth.token,
    autorun: true
  });
  bot.on('ready', function(evt) {
    logger.info('Connected');
    logger.info('Logged in as: ');
    logger.info(bot.username + ' - (' + bot.id + ')');
  });
  bot.on('message', function(user, userID, channelID, message, evt) {
    // Our bot needs to know if it will execute a command
    // It will listen for messages that will start with `!`
    if (message.substring(0, 1) == '!') {
      var args = message.substring(1).split(' ');
      var cmd = args[0];
  
      args = args.splice(1);
      switch (cmd) {
        // !play
        case 'play':
          bot.sendMessage({
            to: channelID,
            message: '@everyone The Owner, Admins and The OGs are playing Mass Effect Andromeda! Come play with them! :smiley:'
  
          });
          break;
          // Just add any case commands if you want to..
      }
    }
  });
  </code></pre>