aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_message.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix some clippy lintsZeyla Hellyer2018-07-151-1/+1
| | | | | Some lints were not resolved due to causing API changes. Most lints in the framework were left unfixed.
* Monomorphize all functionsZeyla Hellyer2018-07-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add an `EditMessage` builderZeyla Hellyer2018-01-181-0/+45
When editing messages, not all fields are applicable. Attachments, TTS, and reactions are not applicable. To help with this distinction, separate message editing into a different builder.