aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/command.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add Function to call if a Message without Command has been sent (#430)Lakelezz2018-11-111-0/+1
|
* Prefix only Command (#416)Lakelezz2018-10-151-1/+2
|
* Add Option to disable bypassing Checks for Owners (#419)Lakelezz2018-10-151-0/+5
|
* A bunch of typo fixes (#404)Perry Fraser2018-10-011-3/+3
|
* Add single group help (#385)Lakelezz2018-09-111-0/+2
|
* Suggest similar commands when using help (#377)Lakelezz2018-09-091-1/+4
|
* Refactor `command::positions` a littleacdenisSK2018-08-031-12/+7
|
* Add default-commands for command-groups (#351)Lakelezz2018-07-211-0/+2
|
* Support multiple prefixes for command-groups (#343)Lakelezz2018-07-151-2/+2
|
* Add checks for groups (#349)Lakelezz2018-07-151-1/+4
|
* Quickly rename to `no_dm_prefix`acdenisSK2018-07-141-1/+1
| | | | Minimize assumptions that `no_prefix` would work everywhere.
* Allow for nil prefixes in DMsacdenisSK2018-07-141-1/+18
| | | | Fixes #339
* Remove deprecated use of Colour associated methodsZeyla Hellyer2018-07-081-2/+2
|
* And another (function call) repetionacdenisSK2018-06-211-2/+4
|
* Remove slight repetitionacdenisSK2018-06-211-12/+7
|
* Remove extraneous spaces at the end of linesZeyla Hellyer2018-06-171-2/+2
|
* Handle debug impls betteracdenisSK2018-06-081-23/+25
|
* help: differentiate whether a command is unavailable in dms or guilds (#319)Lakelezz2018-05-251-3/+12
|
* Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-291-6/+10
|
* Add `unrecognised_command` (#276)Lakelezz2018-02-151-0/+1
|
* Fix multibyte character based prefixes (#253)Uninteresting Account2018-01-201-7/+8
|
* Fix most clippy lints, take more refeerncesZeyla Hellyer2017-12-161-4/+4
| | | | | Fix clippy lints and subsequently accept references for more function parameters.
* Break up the model moduleZeyla Hellyer2017-12-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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}; ```
* 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.
* Make help-commands customisable (#227)Lakelezz2017-11-301-8/+110
|
* Add `before`/`after` middleware to `Command`acdenisSK2017-11-231-1/+30
|
* Add a way to execute code when a command is registeredacdenisSK2017-11-211-0/+3
|
* Add `help()` to `CreateGroup`. (#225)Lakelezz2017-11-201-1/+14
|
* Add an impl for `Fn(&mut Context, &Message, Args)`acdenisSK2017-11-201-4/+6
|
* Change most of the framework to use trait-based-commandsacdenisSK2017-11-151-29/+73
|
* Fix strange behaviour when the prefix has spaces (#215)Uninteresting Account2017-11-131-14/+10
|
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-111-2/+2
|
* Add Debug derives to more public typesthelearnerofcode2017-11-071-0/+21
|
* Merge v0.4.3acdenisSK2017-11-041-10/+27
|\
| * Fix #206 (#207)Uninteresting Account2017-10-291-10/+27
| |
| * Add a todoacdenisSK2017-09-301-0/+1
| |
| * Make the internal string publicacdenisSK2017-09-301-1/+1
| |
* | Make `Command::aliases` publicacdenisSK2017-11-031-1/+2
| |
* | Add a todoacdenisSK2017-10-091-0/+1
| |
* | Make the internal string publicacdenisSK2017-10-091-1/+1
| |
* | Change the way users' command handlers are stored asacdenisSK2017-09-291-12/+8
|/
* Use display instead of std::error::ErroracdenisSK2017-09-251-28/+3
| | | | Kind of a bad decision but due to the compiler being a meany with impl conflicts for `From<&str>` and `From<String>`, it needs to be done. Plus it removes the useless custom struct.
* Revamp errors in `Args` and commandsacdenisSK2017-09-231-9/+54
|
* Also rustfmtZeyla Hellyer2017-09-181-2/+7
|
* Add Send/Sync to framework itemsZeyla Hellyer2017-09-181-7/+7
|
* Apply rustfmtZeyla Hellyer2017-09-181-4/+1
|
* Copy some methods from Command to Group (#164)Maiddog2017-09-111-1/+8
|
* Allow commands to be limited to certain roles (#157)Lakelezz2017-09-051-0/+3
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-271-1/+4
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-241-4/+1
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.