aboutsummaryrefslogtreecommitdiff
path: root/commands/reset.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/reset.go')
-rw-r--r--commands/reset.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/reset.go b/commands/reset.go
index 07e3ba3..f50bb21 100644
--- a/commands/reset.go
+++ b/commands/reset.go
@@ -25,7 +25,7 @@ func ResetUser(s *discordgo.Session, i *discordgo.InteractionCreate, optMap cmd.
}
return
}
- m := v.UserValue(s)
+ m := v.UserValue(s.UserAPI())
if m.Bot {
if err := resp.SetMessage("Les bots n'ont pas de niveau :upside_down:").Send(); err != nil {
logger.Alert("commands/reset.go - Copaing not set", err.Error())