diff options
| author | Austin Hellyer <[email protected]> | 2016-11-15 09:34:45 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-15 09:34:45 -0800 |
| commit | 08721763df212cd46b4226d535da00fad9dc10e7 (patch) | |
| tree | bbf65b7542d2b3f26f1f9cf2c2c90b3813e83524 /examples | |
| parent | Feature-gate voice example (diff) | |
| download | serenity-08721763df212cd46b4226d535da00fad9dc10e7.tar.xz serenity-08721763df212cd46b4226d535da00fad9dc10e7.zip | |
Add a message builder for Context::send_message
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));
```
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions