aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Derive Eq/Ord on ColourAustin Hellyer2016-12-031-1/+14
|
* Make the default Colour value the actual defaultAustin Hellyer2016-12-031-2/+2
| | | | | The Colour value defaulted to 0x0; this is incorrect, as Discord's default colour value is actually 0x99AAB5.
* s/rose_water/rosewaterAustin Hellyer2016-12-031-1/+1
|
* Add rose water colourIllia2016-12-031-0/+2
|
* Add 'fooyoo' to Colour structIsaac Dickinson2016-12-011-1/+3
|
* Add fabled_pink to Colour structKen Swenson2016-12-011-0/+2
|
* Simplify colour macroAustin Hellyer2016-12-011-3/+2
|
* Re-order dark_green colour alphabeticallykhazhyk2016-12-011-2/+2
|
* Capitalize the hex value for blitz_blueKisei2016-11-301-1/+1
|
* Add documentation for EditMember and EditProfileKisei2016-11-302-0/+15
|
* Add blitz blue colorCrawl2016-11-301-0/+2
|
* Add Blurple to Colour listGetRektByMe2016-11-301-0/+2
| | | | Add a Blurple colour with RGB value 114,137,218.
* Add kerbal colourindiv02016-11-301-0/+2
|
* Clean up the codebaseAustin Hellyer2016-11-294-99/+3
|
* Re-order message builder fileAustin Hellyer2016-11-281-22/+21
|
* Fix some clippy lintsAustin Hellyer2016-11-281-7/+7
|
* Improve docs and add new message builder methodsIllia K2016-11-284-30/+171
| | | | | Add documentation for some missing methods - such as Game methods - and add more methods to the Message Builder.
* Re-export CreateEmbedFooterKisei2016-11-271-0/+1
|
* Add a bit more docsAustin Hellyer2016-11-263-6/+110
|
* Remove the 'extras' feature flagAustin Hellyer2016-11-263-61/+4
| | | | | | There aren't many things behind this flag (6), and it only causes annoyances for locally-generated docs, which won't show these mostly-useful items behind the flag.
* Rename PublicChannel to GuildChannelAustin Hellyer2016-11-252-6/+6
|
* Rename the `http` module to `rest`Austin Hellyer2016-11-252-5/+5
|
* Rename guild structs to Guild and PartialGuildAustin Hellyer2016-11-241-2/+2
|
* Ensure embed fields are inline by defaultAustin Hellyer2016-11-231-1/+1
| | | | | | | 90% of use cases require embed fields to be inlined, so it's a better default. Also this makes the documentation accurate.
* Rename the State to CacheAustin Hellyer2016-11-221-47/+47
|
* Don't typo CreateEmbed::image fieldAustin Hellyer2016-11-211-1/+1
|
* Add support for creating embed imagesAustin Hellyer2016-11-212-0/+49
|
* Fix cond. compile across multiple feature targetsAustin Hellyer2016-11-191-71/+57
| | | | | | | | Fixes conditional compilation across multiple combinations of feature targets, where it was assumed a second feature would be enabled by something that requires a feature to be enabled. This also fixes an EOF compilation error on no-feature builds.
* A bit of docsAustin Hellyer2016-11-187-36/+302
|
* Feature macros should use else as block separatorAustin Hellyer2016-11-181-4/+4
|
* Add Colour::from_rgbAustin Hellyer2016-11-161-0/+34
| | | | | from_rgb creates a `Colour` from an RGB representation. This is meant as the "opposite" usage of `Colour::new`.
* Add send_message rich embedsAustin Hellyer2016-11-153-21/+340
|
* Add state/framework/etc. conditional compile flagsAustin Hellyer2016-11-153-83/+321
| | | | | | | | | | | | | | | This adds conditional compilation for the following features, in addition to the voice conditional compilation flag: - extras (message builder) - framework - methods - state These 4 are enabled _by default_, while the `voice` feature flag is disabled. Disabling the state will allow incredibly low-memory bots.
* Add a message builder for Context::send_messageAustin Hellyer2016-11-152-0/+73
| | | | | | | | | | | | | | | | Add a message builder to `send_message`. Often only one field - i.e. `content` - needs to be specified, and the rest can be ignored. This is a preliminary patch to add rich embed support to messages. This message builder is used via: ```rust // assuming in a context with a `channel_id` bound context.send_message(channel_id, |m| m .content("TTS ping!") .tts(true)); ```
* Decode embed/role colours into Colour structAustin Hellyer2016-11-142-1/+12
| | | | | | This is for a little bit of ergonomics, and is of such a minute cost that it is worth it to just directly decode the u32's received for Role/Embed colours into the Colour struct.
* Add voice connection supportAustin Hellyer2016-11-141-1/+50
|
* Add internal moduleAustin Hellyer2016-11-141-1/+1
| | | | | Create a general `internal` module, and move `prelude_internal` to `internal::prelude`.
* Move the builders to the utilsAustin Hellyer2016-11-1311-0/+639
| | | | | | | | | The builders aren't a large enough portion of the library to deserve their own root-level module, so move them to the `utils` module. Additionally, split them into separate files, as the library will be receiving more builders and the single-file pattern was getting rather large.
* Fix some clippy lintsAustin Hellyer2016-11-101-0/+3
|
* Map op codes via a macroAustin Hellyer2016-11-091-0/+26
|
* Add some more documentationAustin Hellyer2016-11-063-5/+13
|
* Add a prelude for userlandAustin Hellyer2016-11-051-1/+1
| | | | | | | Users can now import all of a prelude via `use serenity::prelude::*;`, which should provide some helpful stuff. As such, the internal prelude is now named `serenity::prelude_internal`, and all internal uses have been adjusted.
* Convert all doc anchors to named anchorsAustin Hellyer2016-11-051-2/+3
| | | | | | | | | | | | | | | | | | | | Convert all of the non-named anchors in docs to named anchors. Example: ```md Kicks a [`Member`](../model/struct.Member.html) from the specified [`Guild`](../model/struct.Guild.html) if they are in it. ``` is now written as: ```md Kicks a [`Member`] from the specified [`Guild`] if they are in it. [`Guild`]: ../model/struct.Guild.html [`Member`]: ../model/struct.Member.html ```
* Support major parameters in ratelimitsAustin Hellyer2016-11-051-4/+4
| | | | | Refer to the documentation for `serenity::client::ratelimiting::Route` on how major parameters work.
* Initial commitAustin Hellyer2016-10-183-0/+363