forked from embee/woomy
ACTUALLY fixed cooldown
This commit is contained in:
parent
3589373ce9
commit
2408257b44
1 changed files with 4 additions and 3 deletions
|
@ -154,8 +154,9 @@ 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));
|
||||
).then(msg => {
|
||||
msg.delete({timeout: 2000});
|
||||
});
|
||||
};
|
||||
|
||||
if (message.guild && !perms.has('SEND_MESSAGES')) {
|
||||
|
|
Loading…
Reference in a new issue