Markus-Rost преди 3 години
родител
ревизия
2509deb526
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      bot.js

+ 1 - 1
bot.js

@@ -288,7 +288,7 @@ function messageCreate(msg) {
 					} ).then( lang => {
 						msg.sendChannel( {
 							content: new Lang(( lang || msg.guild.preferredLocale ), 'general').get('missingperm') + ' `' + missing.join('`, `') + '`',
-							reply: ( missing.includes( 'READ_MESSAGE_HISTORY' ) ? null : {messageReference: msg.id} )
+							reply: ( missing.includes( 'READ_MESSAGE_HISTORY' ) ? undefined : {messageReference: msg.id} )
 						}, true );
 					} );
 				}