diff options
Diffstat (limited to 'src/client/gateway/shard.rs')
| -rw-r--r-- | src/client/gateway/shard.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/gateway/shard.rs b/src/client/gateway/shard.rs index bc2b813..6b70dd5 100644 --- a/src/client/gateway/shard.rs +++ b/src/client/gateway/shard.rs @@ -64,7 +64,7 @@ pub struct Shard { last_sequence: u64, login_type: LoginType, session_id: Option<String>, - shard_info: Option<[u8; 2]>, + shard_info: Option<[u64; 2]>, token: String, ws_url: String, /// The voice connections that this Shard is responsible for. The Shard will @@ -99,7 +99,7 @@ impl Shard { /// ``` pub fn new(base_url: &str, token: &str, - shard_info: Option<[u8; 2]>, + shard_info: Option<[u64; 2]>, login_type: LoginType) -> Result<(Shard, ReadyEvent, Receiver<WebSocketStream>)> { let url = prep::build_gateway_url(base_url)?; @@ -172,7 +172,7 @@ impl Shard { /// /// For example, if using 3 shards in total, and if this is shard 1, then it /// can be read as "the second of three shards". - pub fn shard_info(&self) -> Option<[u8; 2]> { + pub fn shard_info(&self) -> Option<[u64; 2]> { self.shard_info } |