aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
* Move unit tests into sourceZeyla Hellyer2018-08-011-0/+433
| | | | | | | | | 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
|
* Reduce minimal Rust version to 1.25Zeyla Hellyer2018-07-292-4/+4
|
* 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
|
* Merge `Token` and `TokenOwned`acdenisSK2018-07-191-26/+10
|
* Use an `Option` to denote endacdenisSK2018-07-191-18/+7
|
* Fix some clippy lintsZeyla Hellyer2018-07-153-28/+25
| | | | | Some lints were not resolved due to causing API changes. Most lints in the framework were left unfixed.
* Support multiple prefixes for command-groups (#343)Lakelezz2018-07-154-28/+62
|
* Add checks for groups (#349)Lakelezz2018-07-154-5/+34
|
* Quickly rename to `no_dm_prefix`acdenisSK2018-07-142-6/+6
| | | | Minimize assumptions that `no_prefix` would work everywhere.
* Allow for nil prefixes in DMsacdenisSK2018-07-142-1/+31
| | | | Fixes #339
* Add docs for `Args::new`acdenisSK2018-07-131-0/+27
|
* Fix doc links with no anchorZeyla Hellyer2018-07-111-0/+2
|
* Deprecate Message::guild_id()Zeyla Hellyer2018-07-091-1/+1
| | | | | Instead, using the structfield is preferred, since that comes from gateway events directly now anyway.
* Remove deprecated use of Colour associated methodsZeyla Hellyer2018-07-081-2/+2
|
* Don't assume all characters at end are 1-lengthacdenisSK2018-07-061-2/+17
| | | | Unicode characters usually span out to more than 1-length. This would cause crashes when they appeared at the end
* Add missing Send and Sync boundsacdenisSK2018-06-211-1/+1
|
* Miscellaneous changes in ArgsacdenisSK2018-06-211-267/+286
| | | | | | - Do not be lazy and DO add an example for the `_*` methods. - Reorganize the methods so they're more coherent. - Use the `rest` method than to rely on deref (which in turn relies on `full`).
* Directly use the iteratoracdenisSK2018-06-211-2/+2
|
* And another (function call) repetionacdenisSK2018-06-211-2/+4
|
* Remove slight repetitionacdenisSK2018-06-211-12/+7
|
* If no help is available, command is not visible thus return false.Lakelezz2018-06-181-3/+1
|
* Rename from `is_command_hidden` to `is_command_visible`.Lakelezz2018-06-181-5/+5
|
* Check if a command would be visible, if yes provide help for it.Lakelezz2018-06-181-7/+47
|
* Remove extraneous spaces at the end of linesZeyla Hellyer2018-06-174-10/+10
|
* Fix Args testZeyla Hellyer2018-06-171-76/+76
| | | | | | | The args test had a string suffixed with `#`, as if it were a raw string, when it was not. This has been fixed by making it a raw string, which has the side-effect of not needing to escape double quotation marks in the string itself.
* Revert the OR back to the ANDAlex M. M2018-06-171-1/+1
| | | I'm an idiot.
* Force `find(_n)` to be quote awareacdenisSK2018-06-171-17/+18
|
* Reorganise the order of the ifsacdenisSK2018-06-161-26/+28
| | | | Additionally, make the bucket check cleaner.
* Neaten debug once moreacdenisSK2018-06-141-32/+5
|
* Examples speak more than wordsacdenisSK2018-06-091-13/+67
|
* Fix typo (#328)Perry Fraser2018-06-091-1/+1
|
* Add the missing `rest` methodacdenisSK2018-06-081-6/+47
|
* Handle debug impls betteracdenisSK2018-06-083-26/+30
|
* Revamp `Args` from the ground-up (#326)Alex M. M2018-06-041-224/+331
|
* do not show the strikethrough-tip If no HelpBehaviour is `Strike` (#321)Lakelezz2018-05-271-6/+14
|
* Check if cloning `unrecognised_command` is acceptable (#320)Lakelezz2018-05-271-14/+13
|
* Do some little optimizations on `find(_n)`acdenisSK2018-05-271-8/+17
|
* Further improve `Args` (the struct) documentationacdenisSK2018-05-271-10/+12
|
* Remove "if length == 1" branchacdenisSK2018-05-261-27/+13
|
* Switch to match_indices for occurencesacdenisSK2018-05-261-1/+1
|
* help: differentiate whether a command is unavailable in dms or guilds (#319)Lakelezz2018-05-253-49/+114
|
* Add an option for a bot to work only in certain channels (#318)Victor Polevoy2018-05-242-1/+42
|
* Fix the framework example so that it makes sense and is runnableacdenisSK2018-05-051-6/+12
|