aboutsummaryrefslogtreecommitdiff
path: root/src/model
Commit message (Collapse)AuthorAgeFilesLines
...
* Use `request_client!` for attachment downloading (#165)Benjamin Cheng2017-09-261-1/+1
|
* Refactor display impls for idsacdenisSK2017-09-246-24/+7
|
* Update bitflags, other dependenciesZeyla Hellyer2017-09-219-78/+87
| | | | | | | | | | | | | | | | | | | | | | | Bitflags changed its macro codegen from creating constants to associated constants on structs. Upgrade path: Update code from: ```rust use serenity::model::permissions::{ADD_REACTIONS, MANAGE_MESSAGES}; foo(vec![ADD_REACTIONS, MANAGE_MESSAGES]); ``` to: ```rust use serenity::model::Permissions; foo(vec![Permissions::ADD_REACTIONS, Permissions::MANAGE_MESSAGES]); ```
* Apply rustfmtZeyla Hellyer2017-09-1823-375/+244
|
* Fix compiles of a variety of feature combinationsZeyla Hellyer2017-09-1817-74/+92
| | | | | This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
* Apply rustfmtZeyla Hellyer2017-09-181-1/+3
|
* Gate ChannelCategory impl behind 'model' featureZeyla Hellyer2017-09-181-0/+1
| | | | | The rest of the models in the model module have their implementations gated behind the "model" feature, so do the same here.
* if let -> and_then/mapacdenisSK2017-09-171-5/+1
|
* Apply rustfmtZeyla Hellyer2017-09-141-11/+11
|
* Revamp `CacheEventsImpl`acdenisSK2017-09-121-0/+611
|
* serde rename `kind` to `type`acdenisSK2017-09-091-0/+1
|
* Apply rustfmt + fix testsZeyla Hellyer2017-09-096-11/+31
|
* `parent_id` -> `category_id`acdenisSK2017-09-092-4/+6
|
* Implement categoriesacdenisSK2017-09-096-2/+154
|
* Update `Guild::ban` to use `BanOptions`acdenisSK2017-09-062-9/+11
| | | | Also update `Member::permissions` to the default channel change
* match to map/?acdenisSK2017-09-041-4/+1
|
* Fix the PRESET_GENERAL permission constantZeyla Hellyer2017-09-031-1/+1
| | | | | These bits were completely wrong and even gave the Administrator permission.
* Remove more non-bot user endpointsZeyla Hellyer2017-09-013-50/+0
| | | | | | | | | | | | These include the following functions removed: - `http::get_application_info` - `http::get_applications` - `http::get_emoji` - `http::get_emojis` - `model::Guild::{emoji, emojis}` - `model::GuildId::{emoji, emojis}` - `model::PartialGuild::{emoji, emojis}`
* Make role references attainable via nameLakelezz2017-08-292-0/+69
|
* Prevent malformed opus data from crashing the bot process (#149)Maiddog2017-08-272-54/+60
|
* Add ability to play DCA and Opus files. (#148)Maiddog2017-08-2721-208/+334
|
* Revamp `RwLock` usage in the libacdenisSK2017-08-2422-415/+291
| | | | Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
* Allow FromStr for User to use REST (#147)Maiddog2017-08-241-6/+7
|
* Use cache when possible in UserId's get method (#146)Maiddog2017-08-221-1/+10
|
* Fix tests (#145)Maiddog2017-08-223-24/+24
|
* Cfg the display impls as wellacdenisSK2017-08-221-0/+4
|
* Replace `()` with actual error typesacdenisSK2017-08-221-14/+115
|
* Have the variants be renamed to use snake_caseacdenisSK2017-08-221-1/+1
|
* Move builtin framework impl to its own moduleZeyla Hellyer2017-08-191-2/+2
| | | | | | | | | | | | | | | | | 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.
* Revert back to `deserialize_map`acdenisSK2017-08-191-3/+1
|
* `name` in reactions can be nullableacdenisSK2017-08-191-30/+8
|
* Fix rustfmt lines that are too longZeyla Hellyer2017-08-183-3/+6
| | | | | Apparently rustfmt can't fix some of these, causing it to exit with 3 and therefore failing the build.
* Clippy lintsZeyla Hellyer2017-08-182-31/+31
|
* Apply rustfmtZeyla Hellyer2017-08-1818-151/+241
|
* ClippyacdenisSK2017-08-192-11/+5
|
* Use `#[serde(default)]` on `nsfw` insteadacdenisSK2017-08-151-3/+1
|
* Deprecate `GuildId::as_channel_id` and add simulation methods for the ↵acdenisSK2017-08-042-1/+43
| | | | | | "default channel" concept Also fix a little mistake
* Make some functions accept anything that's implemented DisplayacdenisSK2017-08-041-1/+1
|
* Change to c-like enums and transmuteacdenisSK2017-08-021-164/+55
|
* Use ranges instead of guardsacdenisSK2017-08-011-9/+7
|
* Clippy and rustfmtacdenisSK2017-08-012-8/+10
|
* Provide the input and limit back to the user, and do some consistenciesacdenisSK2017-08-012-3/+8
|
* Remove the `ext` module and remove a matchacdenisSK2017-08-011-6/+2
| | | | | The `ext` has existed for a long while just for backwards compatibility. But then again, majority of people should have migrated to the current modules already; making this module useless to keep in the library.
* Reuse `num`acdenisSK2017-07-311-8/+8
|
* Improve `Action`acdenisSK2017-07-311-100/+200
|
* Change the config a bit, and a few nitpicksacdenisSK2017-07-2720-598/+508
|
* rustfmtacdenisSK2017-07-2728-1451/+1347
|
* Fix is_own codeZeyla Hellyer2017-07-251-1/+1
| | | | | The current user ID is located on the `user` structfield in the cache, and is not directly on the cache.
* Actually, rename it to "is_own" insteadacdenisSK2017-07-261-1/+1
|
* Add a util function for checking if a message was sent by the bot or someone ↵acdenisSK2017-07-261-0/+6
| | | | else