aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_message.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make builders mutably borrowedZeyla Hellyer2018-05-271-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the builders so that they are now mutably borrowed, accepting `&mut self` instead of `self`. Their methods now return `()` instead of `Self`. Upgrade path: Change code such as the following: ```rust channel.send_message(|m| m .embed(|e| e .description("test") .title("title"))); ``` to the following style: ```rust channel.send_message(|mut m| { m.embed(|mut e| { e.description("test"); e.title("title"); e }); m }); ``` Closes #159.
* 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.