aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix-default-command-upon-shortcut-prefix' of ↵fix-default-command-upon-shortcut-prefixMishio5952018-08-061-11/+23
|\ | | | | | | https://github.com/Lakelezz/serenity into fix-default-command-upon-shortcut-prefix
| * Create `Args` only when needed.Lake Lezz2018-08-061-9/+20
| | | | | | | | Modify `Args` accordingly upon failed sub-command.
| * Prevent sub-group-prefixes to picked.Lake Lezz2018-08-061-2/+3
| |
* | Merge branch 'upstream'Mishio5952018-08-0611-1168/+2423
|\ \
| * | Dereference a destructure insteadZeyla Hellyer2018-08-061-3/+3
| | |
| * | Remove match ergonomics usageZeyla Hellyer2018-08-061-4/+4
| |/ | | | | | | We support rustc 1.25.0, but match ergonomics are a 1.26.0 feature.
| * Remove usage of inclusive range syntaxZeyla Hellyer2018-08-061-1/+1
| | | | | | | | We target 1.25.0, but inclusive range is 1.26.0 syntax.
| * Pass failed sub-command to default-command (#357)Lakelezz2018-08-061-1/+2
| | | | | | | | Pass failed sub-command to default-command.
| * Add simple no-parse getters and advancer to `Args`acdenisSK2018-08-051-1/+67
| |
| * Fix Game From impls on no-model compilationZeyla Hellyer2018-08-051-2/+10
| |
| * Make http::fire, http::request publicZeyla Hellyer2018-08-052-48/+207
| |
| * [http] Abstract out routing methods and pathsZeyla Hellyer2018-08-053-654/+1694
| |
| * Make http::wind perform requestsZeyla Hellyer2018-08-051-57/+64
| | | | | | | | | | | | | | Instead of making it take response objects and verifying the status code, it now performs requests itself. This further simplifies HTTP function code.
| * Add an internal http::fire methodZeyla Hellyer2018-08-041-259/+117
| | | | | | | | | | | | | | Add an internal `http::fire` method, which performs a request and then deserializes the response reader as the provided type bound. This simplifies a lot of request function code.
| * Remove an unnecessary lifetime on fn signatureZeyla Hellyer2018-08-041-1/+1
| |
| * Redo how requests are formed in HTTP moduleZeyla Hellyer2018-08-043-616/+688
| | | | | | | | | | | | | | | | | | | | Instead of passing around a function that builds an HTTP client request builder, pass around a struct that contains the necessary information _to_ build that request builder. Additionally, instead of using a macro to generate requests, just call a request function. This saves some required code expansion and is just easier to read and maintain.
| * Maintain a single, re-used HTTP clientZeyla Hellyer2018-08-042-35/+21
| | | | | | | | | | | | | | Instead of creating a new HTTP client for each request, keep a single one for every HTTP request. This will make things faster due to keepalives.
| * Update Configuration default value listingsZeyla Hellyer2018-08-031-32/+84
| | | | | | | | | | | | Update the default value for each method on the builder, as well as making the list of default values in the `Default` implementation's documentation up-to-date.
| * Refactor `command::positions` a littleacdenisSK2018-08-031-12/+7
| |
| * Fix potential dispatch cache deadlocking + log itZeyla Hellyer2018-08-021-1/+12
| | | | | | | | | | | | Fix the dispatch functionality potentially deadlocking when a deadlock has occurred elsewhere (or a read/write lock is forever held elsewhere), and log when it happens, WARNing the user that a possible deadlock has happened.
* | Merge branch 'upstream'Mishio5952018-08-022-8/+22
|\|
| * Add a test-case for no delimitersacdenisSK2018-08-021-0/+9
| |
| * Check if message is empty tooacdenisSK2018-08-021-1/+1
| |
| * Add missing `mut`acdenisSK2018-08-021-1/+1
| |
| * Handle no delimitersacdenisSK2018-08-021-7/+12
| |
* | fix a line in cache/mod.rsMishio5952018-08-021-2/+2
| |
* | Merge branch 'upstream'Mishio5952018-08-0120-82/+1362
|\|
| * Don't delay Ready with cache enabledZeyla Hellyer2018-08-011-46/+5
| | | | | | | | | | | | | | | | | | | | | | When the cache is enabled, don't delay the Ready until all guilds have been received. This never really worked in the first place and duplicates the "cached" logic that fires when all guilds have been received. This presumably fixes the "silent death" bug, as this appears to stall the thread on certain conditions.
| * De-cringe a commentacdenisSK2018-08-011-3/+3
| |
| * Add From impls for Game, generify Game paramsZeyla Hellyer2018-08-014-13/+76
| | | | | | | | | | Add more `impl From<T> for Game` implementations, and make `Into<Game>` trait bounds for all function parameters accepting a Game.
| * Move unit tests into sourceZeyla Hellyer2018-08-0112-0/+1242
| | | | | | | | | | | | | | | | | | Move the unit tests into the relevant source files. There's no need for them to be seprate, especially when the `tests` directory is meant to be for integration tests. The deserialization tests that include JSON files are still in the `tests` dir, along with the public prelude re-export tests.
| * Reword the inner doc comment in `complex_bucket`acdenisSK2018-08-011-11/+15
| |
| * Deprecate Context::edit_profileZeyla Hellyer2018-07-311-0/+1
| | | | | | | | This method won't exist in v0.6.x.
| * Make GuildId::member use the cache when possible (#356)Maiddog2018-07-311-1/+11
| |
| * Reduce minimal Rust version to 1.25Zeyla Hellyer2018-07-292-4/+4
| |
| * Add note about cache in UserId::get docsZeyla Hellyer2018-07-291-2/+3
| |
| * Add `impl AsRef<MessageId> for Message` (#355)Adelyn2018-07-251-0/+6
| |
| * Fix `ChannelId::send_message`'s dead linksacdenisSK2018-07-251-3/+3
| |
* | Merge branch 'asref_messageid_for_message'Mishio5952018-07-241-0/+6
|\ \
| * | Add `impl AsRef<MessageId> for Message`asref_messageid_for_messageMishio5952018-07-241-0/+6
| |/
* | Merge branch 'old_message_on_update'Mishio5952018-07-244-27/+64
|\ \
| * | EventHandler::message_update with cache feature sends old message if availableMishio5952018-07-244-27/+64
| |/
* / add method Colour::hexcolour_hexMishio5952018-07-241-0/+14
|/
* Fallback to default-command if passed sub-command is wrongLakelezz2018-07-241-50/+59
|
* Compare built up length with original user-input instead of iterationsLakelezz2018-07-241-5/+16
|
* Some minor changes to `Args`acdenisSK2018-07-211-10/+9
| | | | | | | - use `?` rather than unwrap - Remove the `PartialEq<TokenKind> impl; it's not needed anymore. - Inline `at_end` because why not. - Split the second part of the while condition as an if inside the body.
* Add default-commands for command-groups (#351)Lakelezz2018-07-213-7/+51
|
* Do not suggest command if no command is actually related to input. (#350)Lakelezz2018-07-201-1/+1
|
* Use `current` to figure out the end quoteacdenisSK2018-07-191-17/+4
|
* Style LineacdenisSK2018-07-191-0/+1
|