51 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Sorry for my poor English.
I'll explain with an analogy.
there are channels 1, 2, 3, and 4.
At 12 o'clock, channels 1 and 3 will be displayed,
and at 6 o'clock in the evening, channels 2 and 4 will be displayed.
I want to recreate this by having a bot automatically switch everyone's permissions on and off within a channel.
this sounds like a perfect use of a cron job
cron?
npm
node-cron
A simple cron-like task scheduler for Node.js. Latest version: 3.0.3, last published: 8 months ago. Start using node-cron in your project by running
npm i node-cron
. There are 1216 other projects in the npm registry using node-cron.ok
thx
What should I do from here lol
set up a cron job to run at the specified times to change the permission overwrites of the channels
![No description](https://cdn.answeroverflow.com/1254809993903996928/image.png)
🤔
what is this
![No description](https://cdn.answeroverflow.com/1254811986278092983/image.png)
ok
That's terrible code. I don't know how to write js. Should I just put the ID in guild.id as is?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
hmmm
I'll try it