setCooldown
Sets a cooldown
public setCooldown(name: string, guild: Guild, user: User | GuildMember, timer: string | number): this
name: command name for cooldown
guild: guild where the cooldown is
user: what user will receive the cooldown
timer: how much time will be the cooldown
const guild = await client.guilds.fetch("4653644376432423")
const user = await client.users.fetch("65438525554545655")
client.setCooldown("ping", guild, user, "7d 5h 30m 20s")
Last updated
Was this helpful?