Skip to content

Commit fba75ea

Browse files
Fix incorrect initialization of shard IDs in BuildClient (disgoorg#417)
1 parent f4d1e1d commit fba75ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func BuildClient(token string, cfg *Config, gatewayEventHandlerFunc func(client
282282
}
283283

284284
shardIDs := make([]int, gatewayBotRs.Shards)
285-
for i := 0; i < gatewayBotRs.Shards-1; i++ {
285+
for i := 0; i < gatewayBotRs.Shards; i++ {
286286
shardIDs[i] = i
287287
}
288288

0 commit comments

Comments
 (0)