aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/configuration.rs
Commit message (Collapse)AuthorAgeFilesLines
* Quickly rename to `no_dm_prefix`acdenisSK2018-07-141-5/+5
| | | | Minimize assumptions that `no_prefix` would work everywhere.
* Allow for nil prefixes in DMsacdenisSK2018-07-141-0/+13
| | | | Fixes #339
* Add an option for a bot to work only in certain channels (#318)Victor Polevoy2018-05-241-1/+27
|
* Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-291-4/+8
|
* Add no_run to doctests that initialize a Client (#293)Maiddog2018-03-181-9/+9
|
* Break up the model moduleZeyla Hellyer2017-12-161-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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}; ```
* Fix framework doctestsZeyla Hellyer2017-11-181-4/+4
| | | | | | | | | | | 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
* Fix doc-testsacdenisSK2017-11-161-2/+10
|
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-111-3/+3
|
* Make the Client return a ResultZeyla Hellyer2017-11-031-11/+13
| | | | | | | | 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.
* Replace Vec parameters by IntoIterator (#176)François Triquet2017-10-091-3/+3
|
* `to_owned` -> `to_string`acdenisSK2017-10-091-3/+3
|
* Apply rustfmtZeyla Hellyer2017-09-181-33/+18
|
* Apply rustfmt fixesZeyla Hellyer2017-09-011-1/+2
|
* Add case insensitivityacdenisSK2017-09-011-0/+12
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-271-17/+31
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-241-31/+17
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
* Move builtin framework impl to its own moduleZeyla Hellyer2017-08-191-0/+451
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.