src/util/Utils.js
// Cannot reply to messages without READ_MESSAGE_HISTORY
Cannot reply to messages without READ_MESSAGE_HISTORY
Cannot reply to messages without READ_MESSAGE_HISTORY
function safeReply(message, newMessage) {
  if (
    message.channel instanceof GuildChannel &&
    !message.channel.permissionsFor(discord.user.id).has(Permissions.FLAGS.READ_MESSAGE_HISTORY)
  ) {
    return message.channel.send(newMessage);
  } else {
    return message.reply(newMessage);
  }
}
function safeReply ( message , newMessage ) { if ( message . channel instanceof GuildChannel && ! message . channel . permissionsFor ( discord . user . id ) . has ( Permissions . FLAGS . READ_MESSAGE_HISTORY ) ) { return message . channel . send ( newMessage ) ; } else { return message . reply ( newMessage ) ; } }
Cannot reply to messages without READ_MESSAGE_HISTORY
Cannot reply to messages without READ_MESSAGE_HISTORY