Skip to content

Commit

Permalink
fix shardmanager starting up with one shard too few
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jun 18, 2022
1 parent 0be38bc commit 730bac6
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 @@ -253,7 +253,7 @@ func BuildClient(token string, config Config, gatewayEventHandlerFunc func(clien
return nil, err
}

shardIDs := make([]int, gatewayBotRs.Shards-1)
shardIDs := make([]int, gatewayBotRs.Shards)
for i := 0; i < gatewayBotRs.Shards-1; i++ {
shardIDs[i] = i
}
Expand Down

0 comments on commit 730bac6

Please sign in to comment.