Markus-Rost před 6 roky
rodič
revize
072f86d398
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -1364,7 +1364,7 @@ String.prototype.escapeFormatting = function() {
 };
 
 String.prototype.replaceSave = function(pattern, replacement) {
-	return this.replace( pattern, replacement.replace( '$', '$$$$' ) );
+	return this.replace( pattern, ( typeof replacement === 'string' ? replacement.replace( '$', '$$$$' ) : replacement ) );
 };
 
 Discord.Message.prototype.reactEmoji = function(name, ignorePause = false) {