events.js:108 throw new ERR_INVALID_ARG_TYPE('listener', 'Function', listener); ^ TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Promise at checkListener (events.js:108:11) at _addListener (events.js:343:3) at Client.addListener (events.js:401:10) at module.exports (D:\Documents\GitHub\PaperLaw\util\eventLoader.js:6:10) at Object. (D:\Documents\GitHub\PaperLaw\index.js:9:30) at Module._compile (internal/modules/cjs/loader.js:1133:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) at Module.load (internal/modules/cjs/loader.js:977:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'ERR_INVALID_ARG_TYPE' }