ACTUALLY fixed cooldown

This commit is contained in:
Emily 2020-03-26 16:01:27 +11:00
parent 3589373ce9
commit 2408257b44

View file

@ -154,8 +154,9 @@ module.exports = async (client, message) => {
if (cooldown.has(message.author.id)) { if (cooldown.has(message.author.id)) {
return message.channel.send( return message.channel.send(
`⏱️ You are being ratelimited. Please try again in 2 seconds.` `⏱️ You are being ratelimited. Please try again in 2 seconds.`
) ).then(msg => {
.then(m => m.delete(5000)); msg.delete({timeout: 2000});
});
}; };
if (message.guild && !perms.has('SEND_MESSAGES')) { if (message.guild && !perms.has('SEND_MESSAGES')) {