diff options
| author | Austin Hellyer <[email protected]> | 2017-01-24 09:27:48 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-24 09:27:48 -0800 |
| commit | f3f74ce43f8429c4c9e38ab7b905fb5a24432fd4 (patch) | |
| tree | ceec88cdf9bdae5915d8115afdcbfe4d3bb43eeb /src/constants.rs | |
| parent | Update examples for OOP style update (diff) | |
| download | serenity-f3f74ce43f8429c4c9e38ab7b905fb5a24432fd4.tar.xz serenity-f3f74ce43f8429c4c9e38ab7b905fb5a24432fd4.zip | |
Abstract large threshold number to a constant
Diffstat (limited to 'src/constants.rs')
| -rw-r--r-- | src/constants.rs | 2 |
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. |