Fixed cooldown logic

This commit is contained in:
2024-01-03 11:39:43 -07:00
parent aa0e484dce
commit 6a30ccc662
4 changed files with 7 additions and 5 deletions

View File

@ -64,7 +64,7 @@ func GetUserObject(event discord.InteractionEvent) Userish {
}
}
func CooldownHandler(event discord.InteractionEvent) bool {
func CooldownHandler(event discord.InteractionEvent, command string, cooldownMinutes int64) bool {
user := GetUserObject(event)
allowList := strings.Split(os.Getenv("COOLDOWN_ALLOW_LIST"), ",")