Live count cmd

I want to make a slash command that updates a voice channel that it has created before every 10 minutes with the current member count of that server Edit: every 24h instead of 10 minutes
4 Replies
d.js toolkit
d.js toolkit3mo 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!
</JustTheDev>
</JustTheDev>3mo ago
How can i do that?
d.js docs
d.js docs3mo ago
Ratelimits are dynamically assigned by the API based on current load and may change at any point. - The scale from okay to API-spam is sliding and depends heavily on the action you are taking - Rainbow roles, clock and counter channels, and DM'ing advertisements to all members are all examples of things that are not okay
jethro
jethro3mo ago
<VoiceChannel>.edit({name: users : ${guild.memberCount}}) and you can use node-cron to schedule yout task
npm
node-cron
A simple cron-like task scheduler for Node.js. Latest version: 3.0.3, last published: 4 months ago. Start using node-cron in your project by running npm i node-cron. There are 1151 other projects in the npm registry using node-cron.