aboutsummaryrefslogtreecommitdiff
path: root/dynamicid
diff options
context:
space:
mode:
Diffstat (limited to 'dynamicid')
-rw-r--r--dynamicid/handling.go5
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
}