فهرست منبع

fix type error

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 );
 					} );
 				}