fix: remove unused parameter

This commit is contained in:
Siwoo Jeon 2025-05-05 10:21:07 +09:00
parent a95bf28efa
commit ba5b45d5eb
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -30,10 +30,10 @@ var HelpCommand *Command = &Command{
}, },
Category: General, Category: General,
MessageRun: func(ctx *MsgContext) { MessageRun: func(ctx *MsgContext) {
helpRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args) helpRun(ctx.Session, ctx.Msg, &ctx.Args)
}, },
ChatInputRun: func(ctx *ChatInputContext) { ChatInputRun: func(ctx *ChatInputContext) {
helpRun(ctx.Command, ctx.Session, ctx.Inter, nil) helpRun(ctx.Session, ctx.Inter, nil)
}, },
} }
@ -47,7 +47,7 @@ func getCommandsByCategory(d *DiscommandStruct, category Category) []string {
return commands return commands
} }
func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) { func helpRun(s *discordgo.Session, m any, args *[]string) {
var commandName string var commandName string
embed := &discordgo.MessageEmbed{ embed := &discordgo.MessageEmbed{
Color: utils.EmbedDefault, Color: utils.EmbedDefault,