From ba5b45d5ebd8b33846ea6716184af5e2dd998eda Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Mon, 5 May 2025 10:21:07 +0900 Subject: [PATCH] fix: remove unused parameter --- commands/help.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/help.go b/commands/help.go index 4d1d3df..f948776 100644 --- a/commands/help.go +++ b/commands/help.go @@ -30,10 +30,10 @@ var HelpCommand *Command = &Command{ }, Category: General, MessageRun: func(ctx *MsgContext) { - helpRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args) + helpRun(ctx.Session, ctx.Msg, &ctx.Args) }, 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 } -func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) { +func helpRun(s *discordgo.Session, m any, args *[]string) { var commandName string embed := &discordgo.MessageEmbed{ Color: utils.EmbedDefault,