1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-06 15:04:22 +00:00
arikawa/gateway/shards.go

17 lines
203 B
Go
Raw Normal View History

2020-01-15 07:34:18 +00:00
package gateway
type Shard [2]int
func DefaultShard() *Shard {
var s = Shard([2]int{0, 1})
return &s
}
func (s Shard) ShardID() int {
return s[0]
}
func (s Shard) NumShards() int {
return s[1]
}