feat(lib,commands,context): UserCommandCtx for Handler
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user