From 83a160b1e7da8eec4613a0ecaed934458c1bf83c Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Fri, 22 Nov 2024 19:07:10 -0300 Subject: [PATCH] feat(lib,commands,context): UserCommandCtx for Handler --- lib/command_user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/command_user.go b/lib/command_user.go index 9de2263..4b77f4f 100644 --- a/lib/command_user.go +++ b/lib/command_user.go @@ -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 +}