aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fix ifsacdenisSK2017-12-181-6/+6
|
* Fix multiple char delimitersacdenisSK2017-12-181-4/+9
|
* Add a special `len` to `Args`acdenisSK2017-12-182-6/+23
|
* Fix doc-tests and `single_zc`acdenisSK2017-12-171-17/+19
|
* Avoid an unwrap in args::parse_quotesZeyla Hellyer2017-12-161-1/+1
|
* Fix most clippy lints, take more refeerncesZeyla Hellyer2017-12-165-31/+38
| | | | | Fix clippy lints and subsequently accept references for more function parameters.
* Break up the model moduleZeyla Hellyer2017-12-168-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `model` module has historically been one giant module re-exporting all of the model types, which is somewhere around 100 types. This can be a lot to look at for a new user and somewhat overwhelming, especially with a large number of fine-grained imports from the module. The module is now neatly split up into submodules, mostly like it has been internally since the early versions of the library. The submodules are: - application - channel - error - event - gateway - guild - id - invite - misc - permissions - prelude - user - voice - webhook Each submodule contains types that are "owned" by the module. For example, the `guild` submodule contains, but not limited to, Emoji, AuditLogsEntry, Role, and Member. `channel` contains, but not limited to, Attachment, Embed, Message, and Reaction. Upgrade path: Instead of glob importing the models via `use serenity::model::*;`, instead glob import via the prelude: ```rust use serenity::model::prelude::*; ``` Instead of importing from the root model module: ```rust use serenity::model::{Guild, Message, OnlineStatus, Role, User}; ``` instead import from the submodules like so: ```rust use serenity::model::channel::Message; use serenity::model::guild::{Guild, Role}; use serenity::model::user::{OnlineStatus, User}; ```
* Revamp the internals of `Args`acdenisSK2017-12-161-123/+153
| | | | Fixes #180, however this partially breaks `single_zc` and `multiple_quoted`, but since they're minor it's better to fix them later for now.
* Remove the `Box<Command>` implacdenisSK2017-12-111-22/+0
| | | | | This was included back then as an afterthought about this impl from a user perspective, not from the lib's. Plus it's unlikely we'll be using this in the near future.
* Fix whitespacing and change `and` to `or`. (#228)Lakelezz2017-11-301-2/+2
|
* Make help-commands customisable (#227)Lakelezz2017-11-306-76/+467
|
* Do a temporary fix for options for commands created in the `command!` macroacdenisSK2017-11-241-1/+24
|
* Convert from macro to ? (#226)Mei Boudreau2017-11-231-1/+1
|
* Add `before`/`after` middleware to `Command`acdenisSK2017-11-232-1/+36
|
* Actually remove the `init` call in `CreateCommand`acdenisSK2017-11-211-5/+1
|
* Add a way to execute code when a command is registeredacdenisSK2017-11-214-5/+20
|
* Add `help()` to `CreateGroup`. (#225)Lakelezz2017-11-203-14/+35
|
* Have `on`'s docs actually use itselfacdenisSK2017-11-201-4/+4
| | | | Fixes #224
* Add an impl for `Fn(&mut Context, &Message, Args)`acdenisSK2017-11-203-20/+13
|
* Add the `pub` modifieracdenisSK2017-11-191-3/+3
|