aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'futures' into v0.6.xZeyla Hellyer2018-05-281-0/+3
|\
| * Merge branch 'master' into futuresZeyla Hellyer2018-03-256-32/+104
| |\
| * | Fix customised help related docs (#267)Lakelezz2018-02-041-2/+2
| | |
| * | Fix case insensitivity for aliases (#262)Lakelezz2018-02-041-6/+7
| | |
* | | Make builders mutably borrowedZeyla Hellyer2018-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the builders so that they are now mutably borrowed, accepting `&mut self` instead of `self`. Their methods now return `()` instead of `Self`. Upgrade path: Change code such as the following: ```rust channel.send_message(|m| m .embed(|e| e .description("test") .title("title"))); ``` to the following style: ```rust channel.send_message(|mut m| { m.embed(|mut e| { e.description("test"); e.title("title"); e }); m }); ``` Closes #159.
* | | Add `lacking_ownership` to `CreateHelpCommand`Brayden Banks2018-05-273-17/+7
| | |
* | | Make builders mutably borrowedZeyla Hellyer2018-05-271-28/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the builders so that they are now mutably borrowed, accepting `&mut self` instead of `self`. Their methods now return `()` instead of `Self`. Upgrade path: Change code such as the following: ```rust channel.send_message(|m| m .embed(|e| e .description("test") .title("title"))); ``` to the following style: ```rust channel.send_message(|mut m| { m.embed(|mut e| { e.description("test"); e.title("title"); e }); m }); ``` Closes #159.
* | | Add `lacking_ownership` to `CreateHelpCommand`Brayden Banks2018-05-274-73/+91
| | |
* | | Use `len_quoted()` for `min_args` and `max_args` (#282)Lakelezz2018-05-271-1/+1
| | |
* | | Properly check if the input is emptyacdenisSK2018-05-271-28/+32
| | |
* | | Add `unrecognised_command` (#276)Lakelezz2018-05-271-1/+1
| | |
* | | 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
| | |
* | | Reword the command macro doc to be less misleadingacdenisSK2018-05-011-4/+10
| | |
* | | Be consistent with the note styleacdenisSK2018-04-061-1/+3
| | |
* | | Improve docs for `Args`acdenisSK2018-04-061-19/+36
| | |
* | | Add `full_quoted`acdenisSK2018-04-051-1/+52
| | |
* | | Fix is_empty behaviour againacdenisSK2018-04-041-20/+31
| | | | | | | | | | | | And fix some style issues.
* | | Short-circuit on an erroracdenisSK2018-04-021-37/+14
| | | | | | | | | | | | And delegate most of is_empty checking to the internal parse function
* | | Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-299-44/+110
| | |
* | | Fix help precendenceacdenisSK2018-03-251-3/+4
| | |
* | | Change the way ids and some enums are made (#295)Leah2018-03-231-2/+2
| | | | | | | | | | | | | | | This makes them easier to be found by tools like rls. Also update struct inits to use the shorthand version for `x: x`.
* | | Add no_run to doctests that initialize a Client (#293)Maiddog2018-03-183-22/+22
| |/ |/|
* | Remove useless clones (#292)Maiddog2018-03-171-7/+7
| |
* | Fix no-cache standardframework compilation (#290)Lakelezz2018-03-154-16/+24
| |
* | Properly check if the input is emptyacdenisSK2018-02-241-7/+31
| |
* | Add `unrecognised_command` (#276)Lakelezz2018-02-152-2/+39
| |
* | Fix customised help related docs (#267)Lakelezz2018-01-311-2/+2
| |
* | Fix case insensitivity for aliases (#262)Lakelezz2018-01-311-6/+7
|/
* Add a way to register middleware functions directly in `CreateCommand`acdenisSK2018-01-253-7/+74
|
* Trim after splitting at the mention-end. (#256)Lakelezz2018-01-221-2/+3
|
* Fix skipping for emote prefixes (#255)Uninteresting Account2018-01-211-3/+2
|
* Fix multibyte character based prefixes (#253)Uninteresting Account2018-01-202-10/+11
|
* Fix doc comment indentationZeyla Hellyer2018-01-191-1/+1
|
* Use an InterMessage to communicate over gatewayZeyla Hellyer2018-01-181-1/+1
| | | | | | | Instead of communicating over the gateway in a split form of a `serde_json::Value` or a `client::bridge::gateway::ShardClientMessage`, wrap them both into a single enum for better interaction between the client, gateway, and voice modules.
* Define `A` only onceacdenisSK2018-01-111-20/+10
|
* Remove `is_bot` boolean from frameworkZeyla Hellyer2018-01-102-8/+8
| | | | | The framework no longer needs the `is_bot` boolean state, since serenity now only supports bot users.
* Add missing `correct roles`-checks in help-commands (#249)Lakelezz2018-01-102-4/+62
|
* Fix help-commands' `plain`Lakelezz2018-01-061-4/+37
|
* Add `iter_quoted`acdenisSK2017-12-241-10/+28
|
* Fix `multiple_quoted` (#241)Lakelezz2017-12-241-50/+50
|
* Better support for multiple delimiters on `Args` (#239)Lakelezz2017-12-223-160/+246
|
* Actually fix `Args`'s `parse` and add a few tests (#236)Lakelezz2017-12-181-8/+3
|