N
N
Nikita Kudrin2020-09-12 13:15:56
Node.js
Nikita Kudrin, 2020-09-12 13:15:56

Launch error on heroku. How to fix?

Greetings.
There is an error with heroku.
It just won't start the Discord bot.
Error: 5f5c9fa9d6923813929848.jpeg
At the same time, everything starts on the PC through the node console.
What to do and how to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cython, 2020-09-12
@cython

You are trying to get a channel from the cache when the cache is empty. That is, the client.channels.cache.get('channel id') method returned undefined, since the channel is not in the cache. First you need to cache the channel via client.channels.fetch('channel id'), then get this channel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question