aboutsummaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-24 09:27:48 -0800
committerAustin Hellyer <[email protected]>2017-01-24 09:27:48 -0800
commitf3f74ce43f8429c4c9e38ab7b905fb5a24432fd4 (patch)
treeceec88cdf9bdae5915d8115afdcbfe4d3bb43eeb /src/constants.rs
parentUpdate examples for OOP style update (diff)
downloadserenity-f3f74ce43f8429c4c9e38ab7b905fb5a24432fd4.tar.xz
serenity-f3f74ce43f8429c4c9e38ab7b905fb5a24432fd4.zip
Abstract large threshold number to a constant
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 98c15eb..115263d 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -1,6 +1,8 @@
/// The gateway version used by the library. The gateway URI is retrieved via
/// the REST API.
pub const GATEWAY_VERSION: u8 = 6;
+/// The large threshold to send on identify.
+pub const LARGE_THRESHOLD: u8 = 250;
/// The maximum unicode code points allowed within a message by Discord.
pub const MESSAGE_CODE_LIMIT: u16 = 2000;
/// The [UserAgent] sent along with every request.