Register TelegrafModule with options in app module
Register DiscordModule with options in app module
Register any discord handler decorator like @Once('ready')
See error
Expected behavior
I expect it to work
Desktop
OS: Ubuntu
Version 22.04
Node: 16.15.0
Additional context
Stacktrace:
TypeError: Cannot read properties of undefined (reading 'allowEvents')
gateway_1 | at /home/node/app/node_modules/@discord-nestjs/core/src/explorers/middleware/middleware.explorer.ts:44:4
gateway_1 | at Array.filter ()
gateway_1 | at MiddlewareExplorer. (/home/node/app/node_modules/@discord-nestjs/core/src/explorers/middleware/middleware.explorer.ts:35:25)
gateway_1 | at Generator.next ()
gateway_1 | at /home/node/app/node_modules/@discord-nestjs/core/dist/explorers/middleware/middleware.explorer.js:17:71
gateway_1 | at new Promise ()
gateway_1 | at __awaiter (/home/node/app/node_modules/@discord-nestjs/core/dist/explorers/middleware/middleware.explorer.js:13:12)
gateway_1 | at MiddlewareExplorer.applyMiddleware (/home/node/app/node_modules/@discord-nestjs/core/dist/explorers/middleware/middleware.explorer.js:49:16)
gateway_1 | at EventExplorer. (/home/node/app/node_modules/@discord-nestjs/core/src/explorers/event/event.explorer.ts:64:43)
gateway_1 | at Generator.next ()
Describe the bug Usage discord-nestjs with nestjs-telegraf will throw error
Dependencies @discord-nestjs/core": "^4.1.1" discord.js": "^14.2.0" telegraf": "^4.8.6" nestjs-telegraf": "^2.6.0"
To Reproduce
Expected behavior I expect it to work
Desktop
Additional context Stacktrace: