aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/help_commands.rs
Commit message (Collapse)AuthorAgeFilesLines
* Reduce minimal Rust version to 1.25Zeyla Hellyer2018-07-291-2/+2
|
* Do not suggest command if no command is actually related to input. (#350)Lakelezz2018-07-201-1/+1
|
* Fix some clippy lintsZeyla Hellyer2018-07-151-20/+20
| | | | | 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-9/+9
|
* If no help is available, command is not visible thus return false.Lakelezz2018-06-181-3/+1
|
* Rename from `is_command_hidden` to `is_command_visible`.Lakelezz2018-06-181-5/+5
|
* Check if a command would be visible, if yes provide help for it.Lakelezz2018-06-181-7/+47
|
* help: differentiate whether a command is unavailable in dms or guilds (#319)Lakelezz2018-05-251-8/+19
|
* Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-291-8/+20
|
* Add no_run to doctests that initialize a Client (#293)Maiddog2018-03-181-2/+2
|
* Remove useless clones (#292)Maiddog2018-03-171-7/+7
|
* Fix no-cache standardframework compilation (#290)Lakelezz2018-03-151-0/+4
|
* Add missing `correct roles`-checks in help-commands (#249)Lakelezz2018-01-101-3/+57
|
* Fix help-commands' `plain`Lakelezz2018-01-061-4/+37
|
* Fix most clippy lints, take more refeerncesZeyla Hellyer2017-12-161-15/+18
| | | | | 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}; ```
* Make help-commands customisable (#227)Lakelezz2017-11-301-43/+82
|
* Fix doc-testsacdenisSK2017-11-161-2/+2
|
* Change most of the framework to use trait-based-commandsacdenisSK2017-11-151-9/+14
|
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-111-3/+3
|
* Fix Help-Commands to list all eligible commands in DMs. (#212)Lakelezz2017-11-041-1/+1
|
* Make the Client return a ResultZeyla Hellyer2017-11-031-2/+2
| | | | | | | | The client now returns a Result in preparation of a future commit. Upgrade path: Handle the case of an error via pattern matching, or unwrap the Result.
* Merge v0.4.2acdenisSK2017-10-241-19/+14
|\
| * Properly update emojis, fix shard retries, fix csLakelezz2017-10-231-4/+2
| | | | | | | | | | | | | | * If a guild's emojis are being altered, Serenity will straight up use the new `HashMap` instead of just extending. If `connect()` returns an `Err`, it will retry connecting. Cleaned up `help_command.rs`.
| * Fix clippy warningsMei Boudreau2017-10-191-17/+14
| |
* | Change CreateEmbed::field{,s} to not take buildersZeyla Hellyer2017-10-181-14/+13
| | | | | | | | | | | | | | | | | | Change the `field` and `fields` methods on `builder::CreateEmbed` to not accept a `CreateEmbedField` builder. The embed field builder realistically only had (and most likely, only will) have one optional argument, so the parameters may as well be on `CreateEmbed::field`.
* | Update to account for changes made in 0.4.1acdenisSK2017-10-141-63/+80
|\|
| * Help-features display `Aliases` and list information for `Aliases`. (#190)Lakelezz2017-10-121-60/+80
| |
| * Fix clippy lintsZeyla Hellyer2017-10-111-5/+6
| |
| * Make `has_correct_permissions`, `has_correct_roles` and ↵Lakelezz2017-10-101-1/+1
| | | | | | | | `has_all_requirements` public. (#188)
| * Help-commands filtering and Member-prefix-search (#182)Lakelezz2017-10-071-10/+10
| |
| * Fix most clippy warningsMaiddog2017-10-041-10/+10
| |
| * `to_owned` -> `to_string`acdenisSK2017-10-011-2/+2
| |
* | Switch to parking_lot::{Mutex, RwLock}Zeyla Hellyer2017-10-101-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to the `parking_lot` crate's implementations of `std::sync::Mutex` and `std::sync::RwLock`, which are more efficient. A writeup on why `parking_lot` is more efficient can be read here: <https://github.com/Amanieu/parking_lot> Upgrade path: Modify `mutex.lock().unwrap()` usage to `mutex.lock()` (not needing to unwrap or handle a result), and `rwlock.read().unwrap()`/`rwlock.write().unwrap()` usage to `rwlock.read()` and `rwlock.write()`. For example, modify: ```rust use serenity::CACHE; println!("{}", CACHE.read().unwrap().user.id); ``` to: ```rust use serenity::CACHE; println!("{}", CACHE.read().user.id); ```
* | Help-commands filtering and Member-prefix-search (#182)Lakelezz2017-10-091-10/+10
| |
* | Fix most clippy warningsMaiddog2017-10-091-10/+10
| |
* | `to_owned` -> `to_string`acdenisSK2017-10-091-2/+2
|/
* Revamp errors in `Args` and commandsacdenisSK2017-09-231-3/+3
|
* Apply rustfmtZeyla Hellyer2017-09-181-12/+6
|
* Fixed admin bypass perm to framework allowed_rolesLakelezz2017-09-091-1/+1
| | | | | | This makes those with the "Administrator" permission able to bypass the `allowed_roles` check. Additionally change a usage of `len() > 0` to `is_empty()`.
* Allow commands to be limited to certain roles (#157)Lakelezz2017-09-051-9/+61
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-271-6/+12
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-241-12/+6
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
* Revamp the args to an `Args` structacdenisSK2017-08-201-5/+5
| | | | Fixes #142
* Move builtin framework impl to its own moduleZeyla Hellyer2017-08-191-0/+346
The framework is now moved in its entirity to the `framework` module, with the `Framework` trait currently on its own and the builtin implementation provided. The builtin implementation has been renamed to "Standard". Upgrade path: Rename the `BuiltinFramework` import to `StandardFramework`. Instead of importing builtin framework items from `serenity::framework`, import them from `serenity::framework::standard`. This is the beginning to #60. The root `framework` module (non-standard implementation) will be built more by the time it's closed.