aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/help_commands.rs
Commit message (Collapse)AuthorAgeFilesLines
* A bunch of typo fixes (#404)Perry Fraser2018-10-011-4/+4
|
* Compile without `cache`-feature (#393)Bond-0092018-09-191-0/+5
|
* Check if a group is empty and exclude them if that's the case. (#389)Lakelezz2018-09-141-5/+9
|
* Add `Usage Sample`-field back to help. (#388)Lakelezz2018-09-141-2/+14
|
* Add tests for help (#387)Lakelezz2018-09-111-0/+81
| | | | | | * Add tests for `levenshtein_distance`-function. * Add tests for `Matrix`-struct.
* Add missing usage on plain help (#386)Lakelezz2018-09-111-1/+5
|
* Add single group help (#385)Lakelezz2018-09-111-14/+55
|
* Fix to build with Rust 1.25.0.Lakelezz2018-09-101-1/+1
|
* Fix group-prefix ambiguity in help (#384)Lakelezz2018-09-101-11/+25
|
* Suggest similar commands when using help (#377)Lakelezz2018-09-091-17/+120
|
* Refactor Help (#375)Lakelezz2018-08-311-411/+482
|
* Make `is_command_visible` work with DMs. (#369)Maiddog2018-08-171-0/+6
|
* 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
|