Update twilight support to twilight 0.11 (#132)

* update twilight support to twilight 0.11

* rustfmt
This commit is contained in:
Erk
2022-05-25 20:11:57 +00:00
committed by Kyle Simpson
parent 4eb95d4b59
commit 69339e8d45
4 changed files with 10 additions and 13 deletions

View File

@@ -105,11 +105,7 @@ impl Songbird {
{
Self {
client_data: PRwLock::new(ClientData {
shard_count: cluster
.config()
.shard_scheme()
.total()
.unwrap_or_else(|| cluster.shards().len() as u64),
shard_count: cluster.config().shard_scheme().total(),
initialised: true,
user_id: user_id.into(),
}),