| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Merge branch 'upstream' | Mishio595 | 2018-08-06 | 1 | -2/+10 |
| |\ | |||||
| | * | Fix Game From impls on no-model compilation | Zeyla Hellyer | 2018-08-05 | 1 | -2/+10 |
| | | | |||||
| * | | Merge branch 'upstream' | Mishio595 | 2018-08-01 | 7 | -6/+413 |
| |\| | |||||
| | * | Add From impls for Game, generify Game params | Zeyla Hellyer | 2018-08-01 | 2 | -1/+52 |
| | | | | | | | | | | | Add more `impl From<T> for Game` implementations, and make `Into<Game>` trait bounds for all function parameters accepting a Game. | ||||
| | * | Move unit tests into source | Zeyla Hellyer | 2018-08-01 | 4 | -0/+345 |
| | | | | | | | | | | | | | | | | | | | Move the unit tests into the relevant source files. There's no need for them to be seprate, especially when the `tests` directory is meant to be for integration tests. The deserialization tests that include JSON files are still in the `tests` dir, along with the public prelude re-export tests. | ||||
| | * | Make GuildId::member use the cache when possible (#356) | Maiddog | 2018-07-31 | 1 | -1/+11 |
| | | | |||||
| | * | Add note about cache in UserId::get docs | Zeyla Hellyer | 2018-07-29 | 1 | -2/+3 |
| | | | |||||
| | * | Add `impl AsRef<MessageId> for Message` (#355) | Adelyn | 2018-07-25 | 1 | -0/+6 |
| | | | |||||
| | * | Fix `ChannelId::send_message`'s dead links | acdenisSK | 2018-07-25 | 1 | -3/+3 |
| | | | |||||
| * | | Merge branch 'asref_messageid_for_message' | Mishio595 | 2018-07-24 | 1 | -0/+6 |
| |\ \ | |||||
| | * | | Add `impl AsRef<MessageId> for Message`asref_messageid_for_message | Mishio595 | 2018-07-24 | 1 | -0/+6 |
| | |/ | |||||
| * / | EventHandler::message_update with cache feature sends old message if available | Mishio595 | 2018-07-24 | 1 | -25/+32 |
| |/ | |||||
| * | Fix some clippy lints | Zeyla Hellyer | 2018-07-15 | 8 | -55/+54 |
| | | | | | | Some lints were not resolved due to causing API changes. Most lints in the framework were left unfixed. | ||||
| * | typos | Zeyla Hellyer | 2018-07-14 | 1 | -2/+2 |
| | | |||||
| * | Abstract impls in Channel's Mentionable impl | Zeyla Hellyer | 2018-07-14 | 1 | -4/+4 |
| | | | | | | Abstract the implementations for each of Channel's variants' `Mentionable` implementations by using the underlying impl. | ||||
| * | Implement Mentionable for Group | Zeyla Hellyer | 2018-07-14 | 1 | -0/+6 |
| | | |||||
| * | Implement Mentionable for PrivateChannel | Zeyla Hellyer | 2018-07-14 | 1 | -0/+6 |
| | | |||||
| * | Implement Mentionable for ChannelCategory | Zeyla Hellyer | 2018-07-14 | 1 | -1/+7 |
| | | |||||
| * | Fix doc links with no anchor | Zeyla Hellyer | 2018-07-11 | 2 | -0/+7 |
| | | |||||
| * | impl Mentionable for GuildChannel (#348) | Adelyn | 2018-07-10 | 1 | -0/+4 |
| | | |||||
| * | Deprecate Message::guild_id() | Zeyla Hellyer | 2018-07-09 | 1 | -14/+11 |
| | | | | | | Instead, using the structfield is preferred, since that comes from gateway events directly now anyway. | ||||
| * | Add a message cache API (#345) | zeyla | 2018-07-09 | 1 | -0/+81 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an API for message caching. By default this caches 0 messages per channel. This can be customized when instantiating: ```rust use serenity::cache::{Cache, Settings}; let mut settings = Settings::new(); // Cache 10 messages per channel. settings.max_messages(10); let cache = Cache::new_with_settings(settings); ``` After instantiation: ```rust use serenity::cache::Cache; let mut cache = Cache::new(); cache.settings_mut().max_messages(10); ``` And during runtime through the global cache: ```rust use serenity::CACHE; CACHE.write().settings_mut().max_messages(10); ``` | ||||
| * | impl Form<&$ID> for $ID | Zeyla Hellyer | 2018-07-08 | 1 | -0/+6 |
| | | | | | Implements `From<&Id>` for all `Id` types, e.g. `From<&RoleId> for RoleId`. | ||||
| * | Monomorphize all functions | Zeyla Hellyer | 2018-07-04 | 11 | -56/+279 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit monomorphizes all functions, turning functions like: ```rust fn foo<T: Into<Bar>>(baz: T) { baz = baz.into(); // function here } ``` Into functions like: ```rust fn foo<T: Into<Bar>>(baz: T) { _foo(baz.into()) } fn _foo(baz: Bar) { // function here } ``` This avoids binary bloat and improves build times, by reducing the amount of code duplication. | ||||
| * | Fix dead doc-links and add missing ones. (#347) | Lakelezz | 2018-07-04 | 1 | -33/+40 |
| | | |||||
| * | Make guild optional on Invites | Zeyla Hellyer | 2018-06-27 | 1 | -8/+20 |
| | | | | | | | | | Make the `guild` structfield on `Invite` and `RichInvite` optional. This was done due to a change in the [docs]. [docs]: https://github.com/discordapp/discord-api-docs/commit/bc0a15bd11db72644633080903171fbc3e71b026 | ||||
| * | feature: add guild_id to Message, per g250k changes | Christopher F | 2018-06-17 | 1 | -0/+5 |
| | | | | | | | this allows stateless bots to drop the need for a channel->guild mapping (cherry picked from commit 74bb8fa5a3b4b5fd43559866b4627bf09484f6ae) | ||||
| * | Remove extraneous spaces at the end of lines | Zeyla Hellyer | 2018-06-17 | 7 | -16/+16 |
| | | |||||
| * | Add methods to check whether `Message` is mentioning `User` (#323) | Lakelezz | 2018-05-29 | 1 | -0/+15 |
| | | |||||
| * | Remove deadlocking in Member::highest_role_info | Zeyla Hellyer | 2018-05-27 | 1 | -8/+6 |
| | | | | | | | Instead of calling `parking_lot::RwLock::read` on the member's guild, call `parking_lot::RwLock::try_read` and return None early if it would cause a deadlock. | ||||
| * | impl From<{,&'a }CurrentUser> for User | Zeyla Hellyer | 2018-05-23 | 1 | -0/+24 |
| | | | | | | Implementation `From<CurrentUser> for User` and `From<&'a CurrentUser> for User`. | ||||
| * | Implement Mentionable for CurrentUser | Zeyla Hellyer | 2018-05-23 | 1 | -0/+6 |
| | | |||||
| * | Add `Message::member` structfield | Zeyla Hellyer | 2018-05-21 | 2 | -2/+23 |
| | | | | | | Adds the `Message::member` structfield, which contains a partial amount of member data (deaf and mute status, role IDs, and joined_at). | ||||
| * | Fix "Guild Member Chunk" deserialization | Zeyla Hellyer | 2018-04-25 | 1 | -2/+11 |
| | | |||||
| * | Remove empty whitespace at ends of lines | Zeyla Hellyer | 2018-04-25 | 1 | -1/+1 |
| | | |||||
| * | Get rid of a spurious import warning | acdenisSK | 2018-04-20 | 1 | -4/+3 |
| | | |||||
| * | make `Options`'s fields optional (#305) | Kyle Clemens | 2018-04-12 | 1 | -15/+60 |
| | | |||||
| * | Turn the number-like properties of `Options` into `u64` | acdenisSK | 2018-04-11 | 1 | -38/+45 |
| | | |||||
| * | Handle (de)serializing `target_id` from/to a string | acdenisSK | 2018-04-11 | 1 | -2/+37 |
| | | |||||
| * | Fix nsfw related docs (#299) | Lakelezz | 2018-04-04 | 4 | -15/+15 |
| | | |||||
| * | Refactor imports/exports to use nested groups and better formatting | acdenisSK | 2018-03-29 | 14 | -30/+107 |
| | | |||||
| * | Change the way ids and some enums are made (#295) | Leah | 2018-03-23 | 7 | -172/+271 |
| | | | | | | This makes them easier to be found by tools like rls. Also update struct inits to use the shorthand version for `x: x`. | ||||
| * | Remove useless clones (#292) | Maiddog | 2018-03-17 | 2 | -4/+4 |
| | | |||||
| * | Support sending files with an embed (#285) | Brandon Lucier | 2018-03-04 | 1 | -5/+4 |
| | | |||||
| * | Pad user discriminators in content_safe to 4 digits | Megumi Sonoda | 2018-02-23 | 1 | -1/+1 |
| | | | | | This brings the function in line with the 'tag' function for User models, and with the official Discord app experience and other libraries. | ||||
| * | Add 'Get Guild Vanity Url' endpoint | Zeyla Hellyer | 2018-02-09 | 3 | -0/+30 |
| | | | | | Docs: <https://github.com/discordapp/discord-api-docs/commit/98f6643703012d2f3780ba730ce1191120f85dcd> | ||||
| * | Fix broken docs links caused by model mod changes | Zeyla Hellyer | 2018-01-31 | 4 | -7/+7 |
| | | | | | | Fix broken links caused by the `model` module changes in v0.5.0, which split up the module into sub-modules for better organization. | ||||
| * | Reduce number of clones in the library | Zeyla Hellyer | 2018-01-27 | 1 | -16/+18 |
| | | |||||
| * | Correctly set role's position on new roles | Zeyla Hellyer | 2018-01-27 | 1 | -1/+7 |
| | | | | | | | When creating a new role, correctly set its position if a position was specified. This is because the "Create Role" endpoint no longer accepts a `position` key. | ||||
| * | Add functions to reorder a guild's channels | Zeyla Hellyer | 2018-01-27 | 2 | -0/+28 |
| | | | | | | Add `http::edit_guild_channel_positions`, `Guild::reorder_channels`, and `GuildId::reorder_channels`. | ||||