feat(lib,commands,context): UserCommandCtx for Handler

This commit is contained in:
Guz
2024-11-22 19:07:10 -03:00
parent 9441c02c78
commit 83a160b1e7

View File

@@ -13,7 +13,7 @@ type UserCommand struct {
NSFW *bool
Description string
DescriptionLocalizations *map[discordgo.Locale]string
Handler Handler
Handler Handler[UserCommandCtx]
}
func (c *UserCommand) ApplicationCommand() *discordgo.ApplicationCommand {
@@ -39,3 +39,7 @@ func (c *UserCommand) Validate() (bool, error) {
}
return true, nil
}
type UserCommandCtx struct {
Ctx
}