Update pic.go
This commit is contained in:
parent
0c236f1da3
commit
764fd9ba8c
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
||||||
|
|
||||||
func Pic(ctx context.Context, data cmdroute.CommandData) *api.InteractionResponseData {
|
func Pic(ctx context.Context, data cmdroute.CommandData) *api.InteractionResponseData {
|
||||||
// Cooldown Logic
|
// Cooldown Logic
|
||||||
allowed, cooldownString := lib.CooldownHandler(*data.Event, "pic", time.Minute*2)
|
allowed, cooldownString := lib.CooldownHandler(*data.Event, "pic", time.Minute*5)
|
||||||
|
|
||||||
if !allowed {
|
if !allowed {
|
||||||
return lib.ErrorResponse(errors.New(cooldownString))
|
return lib.ErrorResponse(errors.New(cooldownString))
|
||||||
|
|
Loading…
Add table
Reference in a new issue