소스 검색

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