aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Actually remove the `init` call in `CreateCommand`acdenisSK2017-11-211-5/+1
| |
* | Add a way to execute code when a command is registeredacdenisSK2017-11-214-5/+20
| |
* | Remove client close handleZeyla Hellyer2017-11-201-19/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the client's close handle. This was eclipsed by the `client::bridge::gateway::ShardManager`, which is a public interface giving full control over connected shards owned by the instance of the client (as opposed to the purpose of the handle which was a simple "shutdown" signal). Additionally, more documentation has been added to `Client::shard_manager`, now including a sample scenario of how to shutdown the bot after some amount of time has passed. Upgrade path: Refer to the documentation for `Client::shard_manager` on a sample scenario on how to switch from the close handle to the ShardManager.
* | Fix no-gateway compilationZeyla Hellyer2017-11-201-3/+1
| |
* | Add `help()` to `CreateGroup`. (#225)Lakelezz2017-11-203-14/+35
| |
* | Have `on`'s docs actually use itselfacdenisSK2017-11-201-4/+4
| | | | | | | | Fixes #224
* | Add an impl for `Fn(&mut Context, &Message, Args)`acdenisSK2017-11-203-20/+13
| |
* | Add the `pub` modifieracdenisSK2017-11-191-3/+3
| |
* | Implement Deserialize for {,Gateway,Voice}EventZeyla Hellyer2017-11-194-179/+518
| | | | | | | | | | | | | | | | | | | | | | Implement Deserialize for `model::event::GatewayEvent` and `model::event::VoiceEvent`, and derive it for `model::event::Event`. Due to the natural potential slowness of deserializing into`Event` (attempting to deserialize into each variant until successful), a function named `model::event::deserialize_event_with_type` is provided for quickly deserializing into a known type if the dispatch type is known.
* | Add `model::Reaction::user`Zeyla Hellyer2017-11-181-3/+13
| | | | | | | | | | | | Add a `user` method to `Reaction::user`, which retrieves the User who made the reaction. This will check the cache for the user and, if either disabled or not found, falls back to hitting the REST API.
* | Add `model::Reaction::channel`Zeyla Hellyer2017-11-181-0/+15
| | | | | | | | | | | | Adds a `channel` method to `model::Reaction`, which retrieves the channel the reaction was made in from the Cache, falling back to hitting the REST API if one was not found (or the cache is disabled).
* | Alphabetize Reaction methodsZeyla Hellyer2017-11-181-14/+14
| |
* | Document that Reaction methods that hit the APIZeyla Hellyer2017-11-181-2/+8
| | | | | | | | | | | | | | Documents that the following `model::Reaction` methods hit the REST API: - `message` - `users`
* | Add a method to get a message from a reaction (#220)Maiddog2017-11-191-0/+10
| |
* | Fix framework doctestsZeyla Hellyer2017-11-182-6/+6
| | | | | | | | | | | | | | | | | | | | | | Fixes the following doctests for the changes introduced in commit [f10b9d7]: - client::Client::with_framework - framework::standard::configuration::Configuration::disabled_commands - framework::standard::configuration::Configuration::dynamic_prefix [f10b9d7]: f10b9d77f0b94864fa20688e3c99de6cec7ca6f9
* | Add `cmd` to `Create(Command|Group)`acdenisSK2017-11-183-19/+49
| |
* | Use a private function to reduce repetitionacdenisSK2017-11-171-21/+11
| |
* | Add the new game types (#219)Mei Boudreau2017-11-161-0/+62
| |
* | impl From<&Path> for http::AttachmentTypeZeyla Hellyer2017-11-161-0/+6
| |
* | Fix doc-testsacdenisSK2017-11-166-14/+33
| |
* | Document that application owners bypass checks (#218)Fenhl2017-11-161-0/+2
| |
* | Change most of the framework to use trait-based-commandsacdenisSK2017-11-155-172/+243
| |
* | Use the threadpool for framework command executionZeyla Hellyer2017-11-134-173/+326
| | | | | | | | | | | | | | Instead of executing framework commands in the shard runner thread (potentially blocking the shard runner from reading new messages over the websocket and heartbeating), dispatch framework commands to the shard runner's threadpool.
* | Fix strange behaviour when the prefix has spaces (#215)Uninteresting Account2017-11-131-14/+10
| |
* | Implement From<EmojiId | EmojiIdentifier> for ReactionType (#217)Fenhl2017-11-131-0/+18
| |
* | Change PrivateChannel::say to use `Display` (#214)Fenhl2017-11-121-1/+1
| |
* | Re-order use statements alphabeticallyZeyla Hellyer2017-11-1154-165/+151
| |
* | Simplify Error's `Display` implZeyla Hellyer2017-11-111-11/+1
| |
* | Make ShardManager::runners publicZeyla Hellyer2017-11-091-1/+5
| | | | | | | | | | | | `ShardManager::public` has been made public to allow direct user interaction, but should be used with caution due to the fact this can internally cause an invalid state when used improperly.
* | Fix Shard::shard_info doctestZeyla Hellyer2017-11-091-3/+1
| |
* | Fix parking_lot::{Mutex, RwLock} re-exportsZeyla Hellyer2017-11-091-2/+1
| | | | | | | | | | | | | | | | Fix the re-exports for `parking_lot::{Mutex, RwLock}` no longer functioning due to the conditional compilation gate removal (`parking_lot` is now always compiled). Tests have been updated to ensure the functionality of these re-exports.
* | Fix doc-testsacdenisSK2017-11-084-53/+15
| |
* | Fix indention for the docs (#213)Chris2017-11-081-6/+6
| |
* | Add Debug derives to more public typesthelearnerofcode2017-11-075-5/+30
| |
* | Into<String> -> DisplayacdenisSK2017-11-071-6/+6
| |
* | Rename `list` to be consistent with `multiple_quoted`acdenisSK2017-11-061-2/+2
| |
* | Actually, change `NeverFails` to a void enumacdenisSK2017-11-051-1/+1
| |
* | Whoops. Add a `FromStr` impl for `ReactionType`acdenisSK2017-11-047-79/+37
| |
* | Merge v0.4.3acdenisSK2017-11-0419-94/+340
|\|
| * Fix doctests for a variety of feature targetsZeyla Hellyer2017-11-014-8/+33
| |
| * Fix no-client cache testsZeyla Hellyer2017-11-014-23/+45
| | | | | | | | | | There were a few doctests in the cache module that relied on the client module, so instead feature-gate the doctests.
| * Fix no-parking_lot compilationZeyla Hellyer2017-11-011-1/+2
| | | | | | | | | | | | Fixes compilation without the `parking_lot` crate compiled. The prelude re-exposed `parking_lot`'s `Mutex` and `RwLock`, but didn't do so conditionally.
| * Use consistent token names in examplesZeyla Hellyer2017-11-015-5/+5
| | | | | | | | | | The names of environment variable tokens in the examples differed, so this makes them all use the same name.
| * Fix ping bot example (#211)Ben2017-10-311-1/+6
| |
| * Make Member::permissions return guild permissionsZeyla Hellyer2017-10-311-11/+3
| | | | | | | | | | | | Fixes what is realistically a bug where `Member::permissions` would retrieve the permissions for the Member in the default channel of the guild. This now only returns the guild-level permissions of the member.
| * Slightly clarify ratelimiting documentationZeyla Hellyer2017-10-301-2/+2
| |
| * Fix extraneous whitespaceZeyla Hellyer2017-10-301-1/+1
| |
| * Rename `Guild::permissions_for`->`permissions_in`Zeyla Hellyer2017-10-305-8/+19
| | | | | | | | | | | | Rename `Guild::permissions_for` to `Guild::permissions_in`, deprecating `Guild::permissions_for` which is only an inline method to `permissions_in`.
| * Guild::has_perms: use Guild::member_permissionsZeyla Hellyer2017-10-301-22/+14
| | | | | | | | | | | | Make `Guild`'s internal method `has_perms` go through `Guild::member_permissions` to check permissions, since all method that use it don't need channel-specific permissions.
| * Add Guild::member_permissionsZeyla Hellyer2017-10-301-0/+51
| | | | | | | | | | | | Add a method on the Guild for calculating only a member's guild-only permissions, not including the permissions for either the default channel or any specific channel.