aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* 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