From dc2751f58f33932a8bfedfc1c5266702a73f565e Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Mon, 31 Mar 2025 21:58:28 +0900 Subject: [PATCH] feat: Fix find a command by help command --- commands/help.go | 2 +- configs/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/help.go b/commands/help.go index 00fae4d..3f6b100 100644 --- a/commands/help.go +++ b/commands/help.go @@ -70,7 +70,7 @@ func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) { switch m := m.(type) { case *discordgo.MessageCreate: - commandName = strings.Join(*args, " ") + commandName = Discommand.Aliases[strings.Join(*args, " ")] case *discordgo.InteractionCreate: optsMap := map[string]*discordgo.ApplicationCommandInteractionDataOption{} for _, opt := range m.ApplicationCommandData().Options { diff --git a/configs/version.go b/configs/version.go index c2c600d..cf5ef15 100644 --- a/configs/version.go +++ b/configs/version.go @@ -7,7 +7,7 @@ import ( "git.wh64.net/muffin/goMuffin/utils" ) -const MUFFIN_VERSION = "0.0.0-gopher_canary.250330a" +const MUFFIN_VERSION = "0.0.0-gopher_canary.250331a" var updatedString string = utils.Decimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]