diff --git a/commands/help.go b/commands/help.go index f948776..307a839 100644 --- a/commands/help.go +++ b/commands/help.go @@ -106,6 +106,13 @@ func helpRun(s *discordgo.Session, m any, args *[]string) { }, } + if command.Name == LearnCommand.Name { + embed.Fields = append(embed.Fields, &discordgo.MessageEmbedField{ + Name: "대답에 쓸 수 있는 인자", + Value: learnArguments, + }) + } + if command.Aliases != nil { embed.Fields = append(embed.Fields, &discordgo.MessageEmbedField{ Name: "별칭", diff --git a/commands/learn.go b/commands/learn.go index 483c7b6..12af361 100644 --- a/commands/learn.go +++ b/commands/learn.go @@ -13,7 +13,7 @@ import ( "github.com/bwmarrin/discordgo" ) -var arguments = utils.InlineCode("{user.name}") + "\n" + +var learnArguments = utils.InlineCode("{user.name}") + "\n" + utils.InlineCode("{user.mention}") + "\n" + utils.InlineCode("{user.globalName}") + "\n" + utils.InlineCode("{user.id}") + "\n" + @@ -91,7 +91,7 @@ func learnRun(c *Command, s *discordgo.Session, m any, args *[]string) { }, { Name: "사용 가능한 인자", - Value: arguments, + Value: learnArguments, Inline: true, }, { diff --git a/main.go b/main.go index 20a8878..7534680 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ func main() { }() for _, cmd := range commands.Discommand.Commands { - if cmd.Name == "도움말" { + if cmd.Name == commands.HelpCommand.Name { // 극한의 성능 똥망 코드 탄생! // 무려 똑같은 걸 반복해서 돌리는! for _, a := range commands.Discommand.Commands {