Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'cache') #55

Open
cyri113 opened this issue Jun 3, 2023 · 0 comments · Fixed by #63
Open

TypeError: Cannot read properties of undefined (reading 'cache') #55

cyri113 opened this issue Jun 3, 2023 · 0 comments · Fixed by #63
Assignees

Comments

@cyri113
Copy link
Contributor

cyri113 commented Jun 3, 2023

we have an error in fetchChannelMessages that is thrown in the discord-bot

development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.319278723Z This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.319760835Z TypeError: Cannot read properties of undefined (reading 'cache')
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.319770972Z     at fetchChannelMessages (/project/lib/functions/fetchMessages.js:127:37)
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.319775222Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.345276865Z This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.345374886Z TypeError: Cannot read properties of undefined (reading 'cache')
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.345381054Z     at fetchChannelMessages (/project/lib/functions/fetchMessages.js:127:37)
development-tc-discord-bot-dev-1  | 2023-06-03T13:19:09.345385323Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@cyri113 cyri113 changed the title Error: fetchChannelMessages TypeError: Cannot read properties of undefined (reading 'cache') Jun 3, 2023
@Behzad-rabiei Behzad-rabiei linked a pull request Jun 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants