channel permission change

I'm a beginner. If you don't mind, please teach me.
51 Replies
d.js toolkit
d.js toolkit•3mo ago
- 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!
! ! anDro
! ! anDro•3mo ago
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.
Mark
Mark•3mo ago
this sounds like a perfect use of a cron job
! ! anDro
! ! anDro•3mo ago
cron?
Mark
Mark•3mo ago
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.
! ! anDro
! ! anDro•3mo ago
ok thx What should I do from here lol
Mark
Mark•3mo ago
set up a cron job to run at the specified times to change the permission overwrites of the channels
d.js docs
d.js docs•3mo ago
:guide: Popular Topics: Permissions - Channel overwrites > Editing overwrites read more
! ! anDro
! ! anDro•3mo ago
No description
! ! anDro
! ! anDro•3mo ago
🤔
! ! anDro
! ! anDro•3mo ago
what is this
No description
! ! anDro
! ! anDro•3mo ago
ok
! ! anDro
! ! anDro•3mo ago
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
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
! ! anDro
! ! anDro•3mo ago
hmmm I'll try it
Want results from more Discord servers?
Add your server