@@ -407,36 +407,43 @@ client.on("interactionCreate", async (interaction) => {
407407 }
408408
409409 if ( uInter . disabled ) {
410+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
410411 config . userErrors . disabled ( interaction , uInter , other ) ;
411412 return ;
412413 }
413414
414415 if ( config . blockedUsers . has ( interaction . user . id ) ) {
416+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
415417 config . userErrors . blocked ( interaction , uInter , other ) ;
416418 return ;
417419 }
418420
419421 if ( uInter . guildOnly && ! interaction . guildId ) {
422+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
420423 config . userErrors . guildOnly ( interaction , uInter , other ) ;
421424 return ;
422425 }
423426
424427 if ( uInter . calculated . developerOnly && ! config . developers . has ( interaction . user . id ) ) {
428+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
425429 config . userErrors . developerOnly ( interaction , uInter , other ) ;
426430 return ;
427431 }
428432
429433 if ( uInter . calculated . guildOwnerOnly && ! config . developers . has ( interaction . user . id ) && interaction . guild . ownerId != interaction . user . id ) {
434+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
430435 config . userErrors . guildOwnerOnly ( interaction , uInter , other ) ;
431436 return ;
432437 }
433438
434439 if ( uInter . guildOnly && uInter . perms . bot . length != 0 && ! uInter . perms . bot . every ( perm => interaction . guild . me . permissions . has ( perm ) ) ) {
440+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
435441 config . userErrors . botPermsRequired ( interaction , uInter , uInter . perms . bot , other ) ;
436442 return ;
437443 }
438444
439445 if ( uInter . guildOnly && ( ! config . developers . has ( interaction . user . id ) ) && uInter . perms . user . length != 0 && ! uInter . perms . user . every ( perm => interaction . member . permissions . has ( perm ) ) ) {
446+ if ( uInter . nullError ) return interaction . update ? ( await interaction . update ( ) . catch ( ( ) => { } ) ) : null ;
440447 config . userErrors . userPermsRequired ( interaction , uInter , uInter . perms . user , other ) ;
441448 return ;
442449 }
0 commit comments