fix(command): using wrong key for /rank due to previous automatic refactor

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-13 18:24:27 +02:00
parent f2fbf1db92
commit a02a0d8e3e
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
2 changed files with 4 additions and 10 deletions

View file

@ -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()