index.js
function sendDiscordMessage(id, message) {
  if (!discordClient || typeof id !== 'string' || typeof message !== 'string')
    return;

  discordClient.sendMessage({
    to:      id,
    message: message,
  });
}
function sendDiscordMessage(id, message) {
  if (!discordClient || typeof id !== 'string' || typeof message !== 'string')
    return;

  discordClient.sendMessage({
    to:      id,
    message: message,
  });
}
function sendDiscordMessage ( id , message ) { if ( ! discordClient || typeof id !== 'string' || typeof message !== 'string' ) return ; discordClient . sendMessage ( { to : id , message : message , } ) ; }
Send a message to Discord channel

@param id      {string} - id of the channel to send message
@param message {string} - message to send to channel
Send a message to Discord channel