Command Cooldowns, is there a way to have a cool down for slash commands?

This is my code for the messageCreate.js event cooldowns: https://srcb.in/so1yvCUNAU

I'm not sure if I can or how to adjust it so that it works for slash commands...
Was this page helpful?