From a02a0d8e3e45d738c5a1a07dbc925c329ddf6278 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 13 May 2025 18:24:27 +0200 Subject: fix(command): using wrong key for /rank due to previous automatic refactor --- commands/rank.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/rank.go b/commands/rank.go index d079a84..70c0222 100644 --- a/commands/rank.go +++ b/commands/rank.go @@ -15,7 +15,7 @@ func Rank(s *discordgo.Session, i *discordgo.InteractionCreate) { m := i.Member var err error resp := utils.ResponseBuilder{C: s, I: i} - if v, ok := optMap["user"]; ok { + if v, ok := optMap["copaing"]; ok { u := v.UserValue(s) if u.Bot { err = resp.Message("Imagine si les bots avaient un niveau :rolling_eyes:").IsEphemeral().Send() -- cgit v1.2.3