From b9e31d826914fe3813a47e7355d09f2023b320c0 Mon Sep 17 00:00:00 2001 From: apricotbucket28 <71973804+apricotbucket28@users.noreply.github.com> Date: Sat, 8 Feb 2025 11:08:09 -0300 Subject: [PATCH] Fix incorrect initialization of shard IDs in `BuildClient` (#417) --- bot/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/config.go b/bot/config.go index 880f182d..88d3ff70 100644 --- a/bot/config.go +++ b/bot/config.go @@ -282,7 +282,7 @@ func BuildClient(token string, cfg *Config, gatewayEventHandlerFunc func(client } shardIDs := make([]int, gatewayBotRs.Shards) - for i := 0; i < gatewayBotRs.Shards-1; i++ { + for i := 0; i < gatewayBotRs.Shards; i++ { shardIDs[i] = i }