aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fix framework doctestsZeyla Hellyer2017-11-181-4/+4
| | | | | | | | | | | Fixes the following doctests for the changes introduced in commit [f10b9d7]: - client::Client::with_framework - framework::standard::configuration::Configuration::disabled_commands - framework::standard::configuration::Configuration::dynamic_prefix [f10b9d7]: f10b9d77f0b94864fa20688e3c99de6cec7ca6f9
* Add `cmd` to `Create(Command|Group)`acdenisSK2017-11-183-19/+49
|
* Use a private function to reduce repetitionacdenisSK2017-11-171-21/+11
|
* Fix doc-testsacdenisSK2017-11-164-11/+27
|
* Document that application owners bypass checks (#218)Fenhl2017-11-161-0/+2
|
* Change most of the framework to use trait-based-commandsacdenisSK2017-11-155-172/+243
|
* Use the threadpool for framework command executionZeyla Hellyer2017-11-132-23/+32
| | | | | | | Instead of executing framework commands in the shard runner thread (potentially blocking the shard runner from reading new messages over the websocket and heartbeating), dispatch framework commands to the shard runner's threadpool.
* Fix strange behaviour when the prefix has spaces (#215)Uninteresting Account2017-11-131-14/+10
|
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-118-20/+20
|
* Add Debug derives to more public typesthelearnerofcode2017-11-072-0/+22
|