Ask coding questions

← Back to all posts
How to make cooldowns in discord.js
h
AngelHeart1 (0)

Hey there, how do i make cooldowns for discord.js commands?

I have

const Discord = require('discord.js')

module.exports = {
name: "test",
cooldown: 10,
async execute(message, args) {
// code
}
}

and what discord.js guide tells me to. But the cooldown lasts 3s not 10s or 10ms however its read