feat: Fix find a command by help command
This commit is contained in:
parent
3229493226
commit
dc2751f58f
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) {
|
||||||
|
|
||||||
switch m := m.(type) {
|
switch m := m.(type) {
|
||||||
case *discordgo.MessageCreate:
|
case *discordgo.MessageCreate:
|
||||||
commandName = strings.Join(*args, " ")
|
commandName = Discommand.Aliases[strings.Join(*args, " ")]
|
||||||
case *discordgo.InteractionCreate:
|
case *discordgo.InteractionCreate:
|
||||||
optsMap := map[string]*discordgo.ApplicationCommandInteractionDataOption{}
|
optsMap := map[string]*discordgo.ApplicationCommandInteractionDataOption{}
|
||||||
for _, opt := range m.ApplicationCommandData().Options {
|
for _, opt := range m.ApplicationCommandData().Options {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"git.wh64.net/muffin/goMuffin/utils"
|
"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]
|
var updatedString string = utils.Decimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue