diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-25 22:58:16 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-25 22:58:45 +0200 |
| commit | 969ba3e0b9580cb0dedc1c78bcda726f18e3a76e (patch) | |
| tree | cfbbff6609224fd94bc80969d92d12b56ac0e529 /dynamicid | |
| parent | ae8639514c168c38e7b520d79c2e843b0588a286 (diff) | |
build(gokord): upgrade to latest nightly
Diffstat (limited to 'dynamicid')
| -rw-r--r-- | dynamicid/handling.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dynamicid/handling.go b/dynamicid/handling.go index 8369e27..e43d658 100644 --- a/dynamicid/handling.go +++ b/dynamicid/handling.go @@ -1,6 +1,7 @@ package dynamicid import ( + "context" "strings" "github.com/anhgelus/gokord" @@ -21,7 +22,7 @@ func HandleDynamicMessageComponent[DynamicData any]( ), base string, ) { - b.AddHandler(func(s bot.Session, i *event.InteractionCreate) { + b.AddHandler(func(_ context.Context, s bot.Session, i *event.InteractionCreate) { if i.Type != types.InteractionMessageComponent { return } @@ -51,7 +52,7 @@ func HandleDynamicModalComponent[DynamicData any]( ), base string, ) { - b.AddHandler(func(s bot.Session, i *event.InteractionCreate) { + b.AddHandler(func(_ context.Context, s bot.Session, i *event.InteractionCreate) { if i.Type != types.InteractionModalSubmit { return } |
