aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
* Execute framework commands in a ThreadPoolZeyla Hellyer2018-01-211-17/+21
| | | | | | | | The v0.5.x branch threadpools commands and events in the same pool, but this isn't possible in the v0.4.x branch due to backwards compatibility. To resolve this, create a second threadpool for just the framework. Closes #250.
* Fix `has_all_requirements` (#245)Lakelezz2018-01-211-1/+1
| | | This fixes the behaviour of help-commands not showing in dms.
* Use consistent token names in examplesZeyla Hellyer2017-11-012-2/+2
| | | | | The names of environment variable tokens in the examples differed, so this makes them all use the same name.
* Fix extraneous whitespaceZeyla Hellyer2017-10-301-1/+1
|
* Rename `Guild::permissions_for`->`permissions_in`Zeyla Hellyer2017-10-301-1/+1
| | | | | | Rename `Guild::permissions_for` to `Guild::permissions_in`, deprecating `Guild::permissions_for` which is only an inline method to `permissions_in`.
* Fix #206 (#207)Uninteresting Account2017-10-292-11/+28
|
* Add a debug impl for `DispatchError`acdenisSK2017-10-231-0/+25
| | | | | | Why this was hand-made instead of derived is because of `CheckFailed`'s content, which is mostly `Command` not also deriving `Debug`; except that even `Command` has a trouble maker that would force us to do this hand-made anyway, `checks`. Fixes #204
* 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`.
* Add "zero-copy" parsingacdenisSK2017-10-212-1/+83
|
* Fix clippy warningsMei Boudreau2017-10-191-17/+14
|
* Add a missing breakacdenisSK2017-10-181-0/+1
|
* `assert` -> `assert_eq`acdenisSK2017-10-181-2/+2
|
* Add `PartialEq` impls and doc tests to `Args`acdenisSK2017-10-181-1/+154
|
* Add try_opt macro for substituteMei Boudreau2017-10-121-8/+5
|
* Help-features display `Aliases` and list information for `Aliases`. (#190)Lakelezz2017-10-121-60/+80
|
* Fix clippy lintsZeyla Hellyer2017-10-112-11/+13
|
* Make `has_correct_permissions`, `has_correct_roles` and ↵Lakelezz2017-10-102-3/+3
| | | | `has_all_requirements` public. (#188)
* Add an iterator for `Args`acdenisSK2017-10-101-9/+33
|
* Add some docs to `Args`acdenisSK2017-10-101-0/+4
|
* Help-commands filtering and Member-prefix-search (#182)Lakelezz2017-10-072-19/+22
|
* Make `has_correct_permissions` a free-standing functionacdenisSK2017-10-061-15/+15
|
* Fix most clippy warningsMaiddog2017-10-044-16/+16
|
* Replace Vec parameters by IntoIterator (#176)François Triquet2017-10-043-8/+8
|
* Revert "Use the de-generification trick."acdenisSK2017-10-031-20/+27
| | | | Makes the compiliation time just a bit worse
* Use the de-generification trick.acdenisSK2017-10-021-27/+20
| | | | Fixes #168
* `to_owned` -> `to_string`acdenisSK2017-10-015-26/+26
|
* WhoopsacdenisSK2017-09-301-2/+2
|
* Add a todoacdenisSK2017-09-301-0/+1
|
* Make the internal string publicacdenisSK2017-09-301-1/+1
|
* Fix a few things with the framework traitacdenisSK2017-09-302-9/+23
|
* 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.
* Fix tests and example 05Zeyla Hellyer2017-09-241-3/+8
|
* Use $crate for CommandErroracdenisSK2017-09-241-3/+3
|
* Revamp errors in `Args` and commandsacdenisSK2017-09-236-86/+141
|
* Remove tokio usageZeyla Hellyer2017-09-212-25/+19
|
* Also rustfmtZeyla Hellyer2017-09-183-7/+17
|
* Add Send/Sync to framework itemsZeyla Hellyer2017-09-184-15/+17
|
* Apply rustfmtZeyla Hellyer2017-09-188-113/+73
|
* Copy some methods from Command to Group (#164)Maiddog2017-09-112-3/+92
|
* Fixed admin bypass perm to framework allowed_rolesLakelezz2017-09-092-9/+13
| | | | | | 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-054-9/+90
|
* Apply rustfmt fixesZeyla Hellyer2017-09-011-1/+2
|
* Add case insensitivityacdenisSK2017-09-012-1/+19
|
* Add num_args (#156)Maiddog2017-08-311-0/+8
|
* Add find and find_n (#153)Maiddog2017-08-281-0/+40
|
* Remove mut when not needed (#152)Maiddog2017-08-281-2/+2
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-277-66/+108
|
* Use `$crate` for `Args`acdenisSK2017-08-261-3/+3
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-247-113/+68
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
* Use cache when possible in UserId's get method (#146)Maiddog2017-08-221-1/+1
|