fix(command): automatic refactor changing names at wrong place

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-13 20:50:32 +02:00
parent a02a0d8e3e
commit 8b174209e1
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5

View file

@ -58,7 +58,7 @@ func main() {
gokord.NewCommand("show", "Affiche la config").SetHandler(commands.ConfigShow), gokord.NewCommand("show", "Affiche la config").SetHandler(commands.ConfigShow),
). ).
AddSub( AddSub(
gokord.NewCommand("exp", "Modifie l'exp"). gokord.NewCommand("xp", "Modifie l'xp").
HasOption(). HasOption().
AddOption(gokord.NewOption( AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionString, discordgo.ApplicationCommandOptionString,
@ -114,12 +114,12 @@ func main() {
HasOption(). HasOption().
SetHandler(commands.Top) SetHandler(commands.Top)
resetCmd := gokord.NewCommand("reset", "Reset l'exp"). resetCmd := gokord.NewCommand("reset", "Reset l'xp").
HasOption(). HasOption().
SetHandler(commands.Reset). SetHandler(commands.Reset).
SetPermission(&adm) SetPermission(&adm)
resetUserCmd := gokord.NewCommand("reset-user", "Reset l'exp d'un utilisation"). resetUserCmd := gokord.NewCommand("reset-user", "Reset l'xp d'un utilisation").
HasOption(). HasOption().
AddOption(gokord.NewOption( AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionUser, discordgo.ApplicationCommandOptionUser,