Сама ошибка:
2022-05-27T10:36:07.602641+00:00 app[worker.1]: [Event Handler] Initialize!
2022-05-27T10:36:07.818024+00:00 app[worker.1]: [Command Handler] Initialize!
2022-05-27T10:36:07.866404+00:00 app[worker.1]: [Bot] Connected to Lounge
2022-05-27T10:36:07.958165+00:00 app[worker.1]: [MongoDB] Connection successful
2022-05-27T10:36:07.976538+00:00 app[worker.1]: /app/node_modules/discord.js/src/managers/ApplicationCommandPermissionsManager.js:401
2022-05-27T10:36:07.976540+00:00 app[worker.1]: id: permissions.id,
2022-05-27T10:36:07.976540+00:00 app[worker.1]: ^
2022-05-27T10:36:07.976540+00:00 app[worker.1]:
2022-05-27T10:36:07.976542+00:00 app[worker.1]: TypeError: Cannot read properties of undefined (reading 'id')
2022-05-27T10:36:07.976543+00:00 app[worker.1]: at Function.transformPermissions (/app/node_modules/discord.js/src/managers/ApplicationCommandPermissionsManager.js:401:23)
2022-05-27T10:36:07.976543+00:00 app[worker.1]: at /app/node_modules/discord.js/src/managers/ApplicationCommandPermissionsManager.js:169:71
2022-05-27T10:36:07.976543+00:00 app[worker.1]: at Array.map ()
2022-05-27T10:36:07.976545+00:00 app[worker.1]: at ApplicationCommandPermissionsManager.set (/app/node_modules/discord.js/src/managers/ApplicationCommandPermissionsManager.js:169:42)
2022-05-27T10:36:07.976545+00:00 app[worker.1]: at /app/classes/services/HandlerService.js:37:39
2022-05-27T10:36:07.976546+00:00 app[worker.1]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Код файла, в котором ошибка:
https://pastebin.com/V9Nc5Z1t