aboutsummaryrefslogtreecommitdiff
path: root/src/utils/builder
Commit message (Collapse)AuthorAgeFilesLines
* Convert Colour to be a tuple structAustin Hellyer2017-01-132-2/+2
| | | | The struct only has one field (`value`) anyway.
* Fix rs suffixIllia2017-01-052-2/+2
|
* Implement context message queueingTaavi2017-01-011-6/+5
| | | Also the dreaded `ctx <<= "something"` which is actually a mistake.
* Fix doctestAustin Hellyer2016-12-311-12/+17
|
* Fix typoIllia2016-12-311-2/+2
|
* Add guild and channel searchAustin Hellyer2016-12-292-0/+381
|
* Remove image/thumbnail embed buildersAustin Hellyer2016-12-182-84/+13
| | | | | | | | When implemented, it was thought that images and thumbnails would be able to have their height/width specified. This isn't the case, and so the image/height methods were deprecated on the builders. Time has passed, so just remove them in favour of direct methods on CreateEmbed instead.
* Allow time::Tm to be passed into embed timestampAustin Hellyer2016-12-181-9/+44
|
* No Z or +XX:XXChristopher F2016-12-181-3/+4
| | | | Eventual Consistency:tm:
* Add documentation regarding ISO-8601 to embedsChristopher F2016-12-181-0/+7
|
* Implement command groups and bucketsIllia2016-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement command groups * change to ref mut * Implement framework API. * Remove commands field * Make it all work * Make example use command groups * Requested changes * Implement adding buckets * Add ratelimit check function * Finish everything * Fix voice example * Actually fix it * Fix doc tests * Switch to result * Savage examples * Fix docs * Fixes * Accidental push * 👀 * Fix an example * fix some example * Small cleanup * Abstract ratelimit bucket logic
* Fix no-cache+method conditional compilesAustin Hellyer2016-12-101-1/+1
| | | | Additionally, flag imports behind feature flags to avoid unused imports.
* Deprecate embed image/thumbnail height/widthAustin Hellyer2016-12-091-36/+10
| | | | | | The height and width fields for embed images and thumbnails can not be set - whereas originally there may have been plans to - so deprecate them and remove in v0.3.0.
* Implement From<Embed> for CreateEmbedAustin Hellyer2016-12-081-1/+70
|
* Add more Context docs+permission requirementsAustin Hellyer2016-12-041-1/+22
| | | | | Add more documentation to most of the Context methods, also clarifying which permission/s are required for each method.
* Add documentation for modelsIllia2016-12-041-3/+8
|
* Add documentation for EditMember and EditProfileKisei2016-11-302-0/+15
|
* Clean up the codebaseAustin Hellyer2016-11-292-37/+0
|
* Improve docs and add new message builder methodsIllia K2016-11-282-16/+4
| | | | | 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-262-5/+110
|
* Remove the 'extras' feature flagAustin Hellyer2016-11-261-10/+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-251-4/+4
|
* 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.
* Don't typo CreateEmbed::image fieldAustin Hellyer2016-11-211-1/+1
|
* Add support for creating embed imagesAustin Hellyer2016-11-212-0/+49
|
* A bit of docsAustin Hellyer2016-11-184-2/+68
|
* Add send_message rich embedsAustin Hellyer2016-11-153-21/+340
|
* Add state/framework/etc. conditional compile flagsAustin Hellyer2016-11-151-4/+10
| | | | | | | | | | | | | | | 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-141-1/+1
| | | | | | 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.
* Move the builders to the utilsAustin Hellyer2016-11-1310-0/+637
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.