aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaura <[email protected]>2017-01-04 19:55:36 +0000
committerzeyla <[email protected]>2017-01-04 11:55:36 -0800
commit93f3c60b23cb8ffd16666bdc01b3502ca7ba5f47 (patch)
tree13f87ae01381d3985d2f9eb7714f6cffa387279f /src
parentAdd Meibi Pink to colours (diff)
downloadserenity-93f3c60b23cb8ffd16666bdc01b3502ca7ba5f47.tar.xz
serenity-93f3c60b23cb8ffd16666bdc01b3502ca7ba5f47.zip
4011 is not handable
Diffstat (limited to 'src')
-rw-r--r--src/client/gateway/shard.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/gateway/shard.rs b/src/client/gateway/shard.rs
index 30f0e53..e4a2952 100644
--- a/src/client/gateway/shard.rs
+++ b/src/client/gateway/shard.rs
@@ -355,6 +355,7 @@ impl Shard {
},
Some(4008) => warn!("Gateway ratelimited"),
Some(4010) => warn!("Sent invalid shard"),
+ Some(4011) => warn!("Bot requires more shards"),
Some(4006) | Some(4009) => {
info!("Invalid session");
@@ -366,7 +367,7 @@ impl Shard {
_ => {},
}
- if !clean && num != Some(1000) && num != Some(4004) {
+ if !clean && num != Some(1000) && num != Some(4004) && num != Some(4011) {
if let Some(session_id) = self.session_id.clone() {
match self.resume(session_id, receiver) {
Ok((ev, rec)) => return Ok(Some((ev, Some(rec)))),