mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
refactor: remove error-silencing try/catch on event handler imports (#5542)
This commit is contained in:
@@ -5,9 +5,7 @@ const { WSEvents } = require('../../../util/Constants');
|
||||
const handlers = {};
|
||||
|
||||
for (const name of Object.keys(WSEvents)) {
|
||||
try {
|
||||
handlers[name] = require(`./${name}.js`);
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
handlers[name] = require(`./${name}.js`);
|
||||
}
|
||||
|
||||
module.exports = handlers;
|
||||
|
||||
Reference in New Issue
Block a user