aboutsummaryrefslogtreecommitdiff
path: root/src/client
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a clippy lintAustin Hellyer2017-02-071-3/+3
|
* Expose and document ratelimitingAustin Hellyer2017-02-051-9/+71
|
* Make GLOBAL ratelimit mutex a unitAustin Hellyer2017-02-052-4/+12
| | | | | Instead of making the GLOBAL ratelimit arc-mutex a RateLimit, make it an empty unit.
* Remove a stupid claim about the lib in the docsAustin Hellyer2017-02-031-2/+2
|
* Fix value of 'browser' in identifyAustin Hellyer2017-02-031-1/+1
|
* Optimize presence update for self in cacheAustin Hellyer2017-02-011-7/+2
|
* Log only unexpected keepalive errorsAustin Hellyer2017-02-011-2/+15
|
* Don't clone the contextAustin Hellyer2017-01-281-6/+4
|
* Don't clone on non-framework message createsAustin Hellyer2017-01-271-5/+4
|
* Don't re-request gateway URL when autoshardingAustin Hellyer2017-01-271-11/+13
| | | | | | | | | When autosharding, the `GET /gateway/bot` URL would be requested to determine shard count. Then, `Client::start_connection` would be called, passing the shard settings. This, in turn, would call `rest::get_gateway`. This was essentially calling for the same URL twice. Instead, have each of the different sharding methods request the gateway URL themselves, and pass into `Client::start_connection`.
* Update examples for OOP updateAustin Hellyer2017-01-261-4/+4
|
* Make Guild::create_channel return a GuildChannelAustin Hellyer2017-01-251-2/+2
| | | | | | | | | | | Instead of returning a generic `Channel` enum, make the following functions return an explicit GuildChannel instead of a more "generic" Channel enum: - Guild::create_channel - GuildId::create_channel - PartialGuild::create_channel - rest::create_channel
* Add guild chunkingAustin Hellyer2017-01-251-0/+13
|
* Fix shard immediately rebooting on handle startAustin Hellyer2017-01-241-0/+2
|
* Fix no-framework compilesAustin Hellyer2017-01-242-8/+8
|
* Fix docs linksAustin Hellyer2017-01-246-21/+28
|
* Properly drop on bindsAustin Hellyer2017-01-242-3/+3
| | | | | | | Instead of binding to `_why`, bind to `_`, dropping the value. This is pretty much just leftover from when the library was being rapidly developed before being released.
* Avoid a lot of Arc/Message/RwLock clonesAustin Hellyer2017-01-242-343/+170
| | | | | | | When passing monitoring info from the shard handler to the dispatch function, pass arguments by reference instead of by cloning and passing by reference. Additionally, don't re-clone handler Arcs and temporary Messages.
* Avoid a needless clone on loginAustin Hellyer2017-01-241-20/+11
|
* Abstract large threshold number to a constantAustin Hellyer2017-01-241-2/+2
|
* Code styleAustin Hellyer2017-01-241-56/+26
|
* Change rest::execute_webhooks to a POSTAustin Hellyer2017-01-241-1/+1
|
* Make BootInfo/MonitorInfo privateAustin Hellyer2017-01-231-3/+3
|
* Switch to a mostly-fully OOP approachAustin Hellyer2017-01-232-1133/+276
| | | | | | The context is now strictly in relation to the context of the current channel related to the event, if any. See Context::say for a list of events that the context can be used for.
* Fix no-framework compilationAustin Hellyer2017-01-211-12/+28
|
* Dispatch Ready eventsAustin Hellyer2017-01-211-6/+23
|
* Reboot shard on broken pipeAustin Hellyer2017-01-203-108/+211
| | | | | | If the receiver or sender breaks the pipe for one reason or another, shutdown both. Afterwards, close down the keepalive and perform a reboot of the shard.
* Make a single POST on guild role createAustin Hellyer2017-01-182-15/+3
| | | | | The endpoint to create a role no longer returns an empty role which must be PATCHed, and can be completed in the initial request.
* TRACE-log on shard handler event receivalAustin Hellyer2017-01-181-0/+4
|
* Credit Shard::latencyAustin Hellyer2017-01-161-0/+2
|
* Set internal seq to number received on dispatchesAustin Hellyer2017-01-151-0/+2
|
* 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.