Skip to content

Commit

Permalink
fix: catch errors setting guild commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 1, 2021
1 parent ec9c17c commit d618daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eventHandlers/InteractionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ module.exports = class InteractionHandler extends require('../models/BaseEventHa
} catch (ignore) { /* Ignored */ }
const guildCCs = grouped[gid];
guildCCs.length = 50;
await guild.commands.set(guildCCs.filter(c => c));
await guild?.commands?.set(guildCCs.filter(c => c));
}
}
}
Expand Down

0 comments on commit d618daa

Please sign in to comment.