aboutsummaryrefslogtreecommitdiff
path: root/src/client
Commit message (Collapse)AuthorAgeFilesLines
* Don't reconnect on WS error within some timeAustin Hellyer2017-01-151-0/+7
| | | | Wait until at least one heartbeat has been sent before doing so.
* Reconnect on any websocket errorAustin Hellyer2017-01-151-2/+0
|
* Add shard latency trackingAustin Hellyer2017-01-142-7/+38
|
* Clarify that messages can't be older than 2 weeks.Illia2017-01-141-0/+2
|
* Fix a payload decodeAustin Hellyer2017-01-091-6/+1
| | | | Resume doesn't have a heartbeat_interval, so don't try to decode it.
* Add more shard loggingAustin Hellyer2017-01-081-6/+32
|
* Slightly modify close resume logicAustin Hellyer2017-01-081-1/+4
|
* Wait 5s between shard bootsAustin Hellyer2017-01-071-0/+3
|
* Fix shard boot indexAustin Hellyer2017-01-071-4/+4
|
* Make Client.shards privateAustin Hellyer2017-01-051-1/+1
|
* Fix rs suffixIllia2017-01-052-2/+2
|
* Simplify a small bit of ContextAustin Hellyer2017-01-041-21/+14
|
* Simplify Context::get_reaction_usersAustin Hellyer2017-01-041-5/+1
|
* Fix Context::get_reaction_users docsAustin Hellyer2017-01-041-6/+0
|
* Add Context::get_userAustin Hellyer2017-01-041-0/+22
|
* Return a User from rest::get_userAustin Hellyer2017-01-041-2/+2
|
* 4011 is not handableLaura2017-01-041-1/+2
|
* Remove user logout endpointAustin Hellyer2017-01-012-26/+0
|
* Implement context message queueingTaavi2017-01-011-1/+38
| | | Also the dreaded `ctx <<= "something"` which is actually a mistake.
* Convert heartbeat debug to a traceAustin Hellyer2016-12-311-1/+1
|
* Fix typoIllia2016-12-313-5/+5
|
* Remove use of struct pattern matchAustin Hellyer2016-12-291-1/+1
|
* Slightly simplify Shard::set_presenceAustin Hellyer2016-12-291-5/+4
|
* "Fix" clippy lintsAustin Hellyer2016-12-291-0/+1
|
* Add guild and channel searchAustin Hellyer2016-12-294-2/+155
|
* Rework some event handlesAustin Hellyer2016-12-291-3/+24
|
* Heartbeat recv: send null d valueAustin Hellyer2016-12-291-1/+1
|
* A bit more loggingAustin Hellyer2016-12-291-0/+4
|
* Round 1Austin Hellyer2016-12-295-61/+123
|
* Use conditional blocks over macrosAustin Hellyer2016-12-294-34/+54
|
* Update current user presence in cache on setAustin Hellyer2016-12-281-1/+20
| | | | | | | | Update the presence of the current user in the cache - if enabled - when the current user updates their presence through a Shard. Additionally, instead of sending an idle "since" of 0, use the current time.
* Accept u64 shard countsAustin Hellyer2016-12-263-9/+12
|
* Add `on_message` exampleindiv02016-12-211-0/+16
|
* Fix current application decodingAustin Hellyer2016-12-181-4/+13
| | | | | | | | | The endpoint for retrieving the current application does not return a `flags`, so don't try to decode it. Additionally, rename `get_application_info` to `get_current_application_info` and create a new `get_application_info` for getting the current user's applications by Id.
* Remove cache feature dependency for frameworkAustin Hellyer2016-12-161-0/+12
|
* Make 'voice' feature not require 'cache'Austin Hellyer2016-12-161-1/+1
| | | | | | | | The voice module required the cache feature in order to access the current user's Id. Instead, just copy the Id into the VoiceManager and distribute it from there -- the memory impact will be very minimal in comparison to the benefits of not needing to constantly unlock the Cache and not needing the user to be forced to use the Cache.
* Simplify gateway identify compressionAustin Hellyer2016-12-161-7/+2
|
* Don't mutate token for bots on profile changezeyla2016-12-131-2/+4
|
* Implement command groups and bucketsIllia2016-12-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement command groups * change to ref mut * Implement framework API. * Remove commands field * Make it all work * Make example use command groups * Requested changes * Implement adding buckets * Add ratelimit check function * Finish everything * Fix voice example * Actually fix it * Fix doc tests * Switch to result * Savage examples * Fix docs * Fixes * Accidental push * 👀 * Fix an example * fix some example * Small cleanup * Abstract ratelimit bucket logic
* Cleanup gateway prepAustin Hellyer2016-12-121-4/+1
|
* More config for CreateCommand, add various methodsIllia2016-12-106-38/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds multiple configurations to the command builder, and adds methods to various structs. Context::get_current_user is a shortcut to retrieve the current user from the cache. Message::get_member retrieves the member object of the message, if sent in a guild. Message::is_private checks if the message was sent in a Group or PrivateChannel. User::member retrieves the user's member object in a guild by Id; Adds 6 configurations to the command builder: - dm_only: whether the command can only be used in direct messages; - guild_only: whether the command can only be used in guilds; - help_available: whether the command should be displayed in the help list; - max_args: specify the maximum number of arguments a command must be given; - min_args: specify the minimum number of arguments a command must be given; - required_permissions: the permissions a member must have to be able to use the command;
* Fix no-cache+method conditional compilesAustin Hellyer2016-12-102-2/+2
| | | | Additionally, flag imports behind feature flags to avoid unused imports.
* Fix some clippy lintsAustin Hellyer2016-12-091-1/+1
|
* Change all try's into ?sacdenisSK2016-12-076-152/+152
| | | This breaks compatibility with < 1.13, but we didn't support that anyway.
* Add a ShareMap across contextsAustin Hellyer2016-12-053-42/+100
| | | | | | | | The context now exposes, through the Client, a `data` field, which can be accessed safely across contexts. This allows for a custom "shared state" without the need for (ab)using lazy-static.rs. Refer to example 06 for an example on how to use shared data.
* Add more Context docs+permission requirementsAustin Hellyer2016-12-041-26/+170
| | | | | Add more documentation to most of the Context methods, also clarifying which permission/s are required for each method.
* Add documentation for modelsIllia2016-12-041-0/+5
|
* Use proper comments on inline ratelimit commentsAustin Hellyer2016-12-041-2/+2
|
* Fix signature of Context::move_memberAustin Hellyer2016-12-031-2/+2
|
* Fix Shard::set_presence exampleAustin Hellyer2016-12-031-1/+1
|