Skip to content

Commit

Permalink
Fix incorrect initialization of shard IDs in BuildClient (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
apricotbucket28 authored Feb 8, 2025
1 parent 2a65413 commit b9e31d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b9e31d8

Please sign in to comment.