fix: remove unused parameter
This commit is contained in:
parent
a95bf28efa
commit
ba5b45d5eb
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue