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 /main.go | |
| parent | ae8639514c168c38e7b520d79c2e843b0588a286 (diff) | |
build(gokord): upgrade to latest nightly
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ package main import ( + "context" _ "embed" "errors" "flag" @@ -196,7 +197,7 @@ func main() { // related to rolereact // TEMP BECAUSE (OLD) GOKORD DOES NOT SUPPORT COMMAND MESSAGE - b.AddHandler(func(s bot.Session, e *event.Ready) { + b.AddHandler(func(_ context.Context, s bot.Session, e *event.Ready) { guildID := "" if gokord.Debug { gs, err := s.GuildAPI().UserGuilds(1, "", "", false) @@ -220,7 +221,7 @@ func main() { } s.Logger().Debug("pushed rolereaction message command", "CommandID", c.ID) }) - b.AddHandler(func(s bot.Session, i *event.InteractionCreate) { + b.AddHandler(func(_ context.Context, s bot.Session, i *event.InteractionCreate) { if i.Type != types.InteractionApplicationCommand { return } @@ -278,7 +279,7 @@ func main() { b.AddHandler(OnVoiceUpdate) b.AddHandler(OnLeave) - b.Start() + b.Start(context.Background()) if stopPeriodicReducer != nil { stopPeriodicReducer <- true |
