Explorar o código

fix type error

Markus-Rost %!s(int64=3) %!d(string=hai) anos
pai
achega
2509deb526
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 					} );
 				}