ACTUALLY fixed cooldown

This commit is contained in:
Emily 2020-03-26 16:01:27 +11:00
parent 3589373ce9
commit 2408257b44
1 changed files with 4 additions and 3 deletions

View File

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