aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Help-commands filtering and Member-prefix-search (#182)Lakelezz2017-10-073-19/+40
|
* Make `has_correct_permissions` a free-standing functionacdenisSK2017-10-061-15/+15
|
* Fix a typoacdenisSK2017-10-051-1/+1
|
* Add an andacdenisSK2017-10-051-1/+1
|
* Use an as_ref hackacdenisSK2017-10-056-10/+17
|
* Replace slice parametres by IntoIterator (#177)François Triquet2017-10-057-9/+15
| | | Fixes #174
* Fix most clippy warningsMaiddog2017-10-049-33/+21
|
* Replace Vec parameters by IntoIterator (#176)François Triquet2017-10-0411-17/+17
|
* Force `I` to be not implemented outside serenityacdenisSK2017-10-031-3/+15
|
* Revert "Use the de-generification trick."acdenisSK2017-10-0319-349/+123
| | | | Makes the compiliation time just a bit worse
* Use the de-generification trick.acdenisSK2017-10-0219-123/+349
| | | | Fixes #168
* `to_owned` -> `to_string`acdenisSK2017-10-0134-176/+176
|
* Have `ConnectionStage` derive CopyacdenisSK2017-10-012-6/+6
| | | | Since it's a fairly simple enum. Also changed `is_connecting` to be more idiomatic.
* Rename an internal Shard Runner methodZeyla Hellyer2017-09-301-2/+2
| | | | | `ShardRunner::recv_events` actually only receives one event, so de-pluralize it.
* Improve shard logicZeyla Hellyer2017-09-303-113/+168
| | | | | | | | | | Improve shard logic by more cleanly differentiating when resuming, as well as actually fixing resume logic. For shard runners, better handling of dead clients is added, as well as more use of the shard manager, in that the runner will now more liberally request a restart when required (instead of sitting and doing nothing infinitely).
* Improve shard and shard runner loggingZeyla Hellyer2017-09-302-60/+99
|
* WhoopsacdenisSK2017-09-301-2/+2
|
* Add a todoacdenisSK2017-09-301-0/+1
|
* Make the internal string publicacdenisSK2017-09-301-1/+1
|
* Fix a few things with the framework traitacdenisSK2017-09-302-9/+23
|
* Fix User::tag and CurrentUser::tag discrim outputZeyla Hellyer2017-09-281-1/+1
| | | | | The output in a tag may result in "username#304" instead of the correct "username#0304".
* Fix client shards by cloning ShardManager runnersZeyla Hellyer2017-09-274-10/+15
| | | | | | Due to the new ShardManager, `Client::shards` would never fill, so instead clone the `shard_runners` instance from the `ShardManager` to the `Client`.
* Fix client no-framework compilationZeyla Hellyer2017-09-274-32/+79
|
* Use `request_client!` for attachment downloading (#165)Benjamin Cheng2017-09-261-1/+1
|
* Update readme exampleZeyla Hellyer2017-09-251-1/+2
|
* Bump to v0.4.0Zeyla Hellyer2017-09-251-1/+1
|
* Use display instead of std::error::ErroracdenisSK2017-09-251-28/+3
| | | | Kind of a bad decision but due to the compiler being a meany with impl conflicts for `From<&str>` and `From<String>`, it needs to be done. Plus it removes the useless custom struct.
* Switch to temporary rust-websocket forkZeyla Hellyer2017-09-251-1/+1
|
* Fix tests and example 05Zeyla Hellyer2017-09-244-12/+14
|
* Add a shard managerZeyla Hellyer2017-09-248-286/+547
| | | | The shard manager will queue up shards for booting.
* Use $crate for CommandErroracdenisSK2017-09-241-3/+3
|
* Refactor display impls for idsacdenisSK2017-09-246-24/+7
|
* Revamp errors in `Args` and commandsacdenisSK2017-09-236-86/+141
|
* Document http::set_token and unhide it from docsZeyla Hellyer2017-09-231-3/+22
|
* Update bitflags, other dependenciesZeyla Hellyer2017-09-219-78/+87
| | | | | | | | | | | | | | | | | | | | | | | Bitflags changed its macro codegen from creating constants to associated constants on structs. Upgrade path: Update code from: ```rust use serenity::model::permissions::{ADD_REACTIONS, MANAGE_MESSAGES}; foo(vec![ADD_REACTIONS, MANAGE_MESSAGES]); ``` to: ```rust use serenity::model::Permissions; foo(vec![Permissions::ADD_REACTIONS, Permissions::MANAGE_MESSAGES]); ```
* Remove tokio usageZeyla Hellyer2017-09-216-391/+154
|
* Fix a documentation typoZeyla Hellyer2017-09-191-1/+1
|
* Also rustfmtZeyla Hellyer2017-09-184-8/+20
|
* Add Send/Sync to framework itemsZeyla Hellyer2017-09-184-15/+17
|
* Fix block on spawning multiple shardsZeyla Hellyer2017-09-183-22/+28
| | | | | | | | | | | | When spawning multiple shards (via an equal number of futures - one per shard) joined on a core.run use, the very first future executed would block forever due to a sync, blocking `monitor_shard` use. While this defeats the purpose of tokio, this was meant to be a first step to an async serenity implementation. To "fix" this blocking call until a deeper async implementation is made, spawn a new thread per tokio core (and thus per shard). This causes the same expected behaviour, just with multiple threads like before.
* Apply rustfmtZeyla Hellyer2017-09-1854-960/+642
|
* Fix compiles of a variety of feature combinationsZeyla Hellyer2017-09-1823-108/+134
| | | | | This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
* Apply rustfmtZeyla Hellyer2017-09-182-2/+6
|
* Gate ChannelCategory impl behind 'model' featureZeyla Hellyer2017-09-181-0/+1
| | | | | The rest of the models in the model module have their implementations gated behind the "model" feature, so do the same here.
* Use combinators in `parse_header`acdenisSK2017-09-171-14/+7
|
* if let -> and_then/mapacdenisSK2017-09-171-5/+1
|
* Apply rustfmtZeyla Hellyer2017-09-141-11/+11
|
* Don't clone in Cache::all_guilds/private_channelsZeyla Hellyer2017-09-141-5/+3
| | | | We don't need to clone the Vec, if the user needs to they can.
* Put the cloning at a later stageacdenisSK2017-09-141-2/+2
|
* Revamp `CacheEventsImpl`acdenisSK2017-09-126-588/+684
|