You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I was working on #53 , there is code for daily-question reminder at 6:00 AM but the code didn't work clearly => const channel = client.channels.cache.get(process.env.CHANNEL_ID);
But Thing is we have to send message to all channels for which our bot is Authicated , line no 8 uses process.env.CHANNEL_ID which is wrong as CHANNEL_ID in env specifies server not channel (Text)
so we get channel = undefined
and failed to send message occurs as below
The text was updated successfully, but these errors were encountered:
Please Add your bot to another server and try it , in your case channel_id in env is same as your channel so only you are receiving it .
Like i have added your bot in my server and i didn't receive it.
line no 10 in ready.js const channel = client.channels.cache.get(process.env.CHANNEL_ID);
Describe the bug
I was working on #53 , there is code for daily-question reminder at 6:00 AM but the code didn't work clearly =>
const channel = client.channels.cache.get(process.env.CHANNEL_ID);
But Thing is we have to send message to all channels for which our bot is Authicated , line no 8 uses process.env.CHANNEL_ID which is wrong as CHANNEL_ID in env specifies server not channel (Text)
so we get channel = undefined
and failed to send message occurs as below
The text was updated successfully, but these errors were encountered: