aboutsummaryrefslogtreecommitdiff
path: root/commands/stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/stats.go')
-rw-r--r--commands/stats.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/stats.go b/commands/stats.go
index 1e55ddd..7a0da6b 100644
--- a/commands/stats.go
+++ b/commands/stats.go
@@ -48,8 +48,12 @@ func Stats(s *discordgo.Session, i *discordgo.InteractionCreate, opt cmd.OptionM
}
days = uint(in)
}
+ err := resp.IsDeferred().Send()
+ if err != nil {
+ logger.Alert("commands/stats.go - Sending deferred", err.Error())
+ return
+ }
var w io.WriterTo
- var err error
if v, ok := opt["user"]; ok {
w, err = statsMember(s, i, days, v.UserValue(s).ID)
} else {