aboutsummaryrefslogtreecommitdiff
path: root/src/framework
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename `list` to be consistent with `multiple_quoted`acdenisSK2017-11-061-2/+2
|
* Merge v0.4.3acdenisSK2017-11-043-13/+30
|\
| * 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
| |
* | Fix Help-Commands to list all eligible commands in DMs. (#212)Lakelezz2017-11-041-1/+1
| |
* | Make the Client return a ResultZeyla Hellyer2017-11-034-26/+30
| | | | | | | | | | | | | | | | 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.
* | Make `Command::aliases` publicacdenisSK2017-11-031-1/+2
| |
* | Fix framework Args testsZeyla Hellyer2017-11-011-71/+71
| | | | | | | | | | The tests were left untouched after a breaking change, resulting in them failing.
* | Merge v0.4.2acdenisSK2017-10-243-21/+277
|\|
| * 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
| |
* | 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-143-83/+125
|\|
| * 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
| |
* | Switch to parking_lot::{Mutex, RwLock}Zeyla Hellyer2017-10-102-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-092-19/+22
| |
* | Make `has_correct_permissions` a free-standing functionacdenisSK2017-10-091-15/+15
| |
* | Fix most clippy warningsMaiddog2017-10-094-15/+15
| |
* | Replace Vec parameters by IntoIterator (#176)François Triquet2017-10-093-8/+8
| |
* | Revert "Use the de-generification trick."acdenisSK2017-10-091-17/+21
| | | | | | | | Makes the compiliation time just a bit worse
* | Use the de-generification trick.acdenisSK2017-10-091-23/+19
| | | | | | | | Fixes #168
* | `to_owned` -> `to_string`acdenisSK2017-10-095-26/+26
| |
* | WhoopsacdenisSK2017-10-091-2/+2
| |
* | Add a todoacdenisSK2017-10-091-0/+1
| |
* | Make the internal string publicacdenisSK2017-10-091-1/+1
| |
* | Do not to " " if none of the provided delimiters are found (#183)Jacob Helwig2017-10-072-9/+8
| |
* | Merge branch 'v0.4.1' into v0.5.0acdenisSK2017-09-302-9/+23
|\|
| * Fix a few things with the framework traitacdenisSK2017-09-302-9/+23
| |