aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Reword the inner doc comment in `complex_bucket`acdenisSK2018-08-011-11/+15
|
* Reduce minimal Rust version to 1.25Zeyla Hellyer2018-07-291-2/+2
|
* 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
|
* Add default-commands for command-groups (#351)Lakelezz2018-07-211-7/+37
|
* Fix some clippy lintsZeyla Hellyer2018-07-151-6/+4
| | | | | 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-151-8/+24
|
* Add checks for groups (#349)Lakelezz2018-07-151-2/+13
|
* 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.
* Directly use the iteratoracdenisSK2018-06-211-2/+2
|
* Revert the OR back to the ANDAlex M. M2018-06-171-1/+1
| | | I'm an idiot.
* Reorganise the order of the ifsacdenisSK2018-06-161-26/+28
| | | | Additionally, make the bucket check cleaner.
* Neaten debug once moreacdenisSK2018-06-141-32/+5
|
* Fix typo (#328)Perry Fraser2018-06-091-1/+1
|
* Handle debug impls betteracdenisSK2018-06-081-1/+2
|
* Check if cloning `unrecognised_command` is acceptable (#320)Lakelezz2018-05-271-14/+13
|
* Add an option for a bot to work only in certain channels (#318)Victor Polevoy2018-05-241-0/+15
|
* Reword the command macro doc to be less misleadingacdenisSK2018-05-011-4/+10
|
* Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-291-10/+25
|
* 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-181-11/+11
|
* Fix no-cache standardframework compilation (#290)Lakelezz2018-03-151-11/+13
|
* Add `unrecognised_command` (#276)Lakelezz2018-02-151-2/+38
|
* Fix case insensitivity for aliases (#262)Lakelezz2018-01-311-6/+7
|
* Add a way to register middleware functions directly in `CreateCommand`acdenisSK2018-01-251-1/+1
|
* 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-201-3/+3
|
* 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.
* Remove `is_bot` boolean from frameworkZeyla Hellyer2018-01-101-3/+3
| | | | | 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-101-1/+5
|
* Better support for multiple delimiters on `Args` (#239)Lakelezz2017-12-221-2/+2
|
* Add a special `len` to `Args`acdenisSK2017-12-181-6/+6
|
* Fix most clippy lints, take more refeerncesZeyla Hellyer2017-12-161-2/+2
| | | | | Fix clippy lints and subsequently accept references for more function parameters.
* Break up the model moduleZeyla Hellyer2017-12-161-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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}; ```
* Make help-commands customisable (#227)Lakelezz2017-11-301-13/+57
|
* Add `before`/`after` middleware to `Command`acdenisSK2017-11-231-0/+6
|
* Add a way to execute code when a command is registeredacdenisSK2017-11-211-2/+8
|
* Add `help()` to `CreateGroup`. (#225)Lakelezz2017-11-201-11/+11
|
* Have `on`'s docs actually use itselfacdenisSK2017-11-201-4/+4
| | | | Fixes #224
* Add an impl for `Fn(&mut Context, &Message, Args)`acdenisSK2017-11-201-7/+3
|
* Add the `pub` modifieracdenisSK2017-11-191-3/+3
|
* Add `cmd` to `Create(Command|Group)`acdenisSK2017-11-181-2/+2
|
* Use a private function to reduce repetitionacdenisSK2017-11-171-21/+11
|
* Fix doc-testsacdenisSK2017-11-161-6/+14
|
* Change most of the framework to use trait-based-commandsacdenisSK2017-11-151-67/+127
|
* Use the threadpool for framework command executionZeyla Hellyer2017-11-131-18/+26
| | | | | | | 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.
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-111-5/+5
|