diff options
| author | Zeyla Hellyer <[email protected]> | 2017-02-15 09:27:39 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-02-15 09:27:39 -0800 |
| commit | 1787e00eab126680932076e24ac820cad0bfc383 (patch) | |
| tree | 54aab4f5dc5a1f211a76af4272d1b983cc049a84 /src/client | |
| parent | Update README for `methods` feature removal (diff) | |
| download | serenity-1787e00eab126680932076e24ac820cad0bfc383.tar.xz serenity-1787e00eab126680932076e24ac820cad0bfc383.zip | |
Update doctests for Context changes
Due to the Context having many methods removed, the doctests were
failing.
Update the doctests to use alternative methods to accomplish the same.
Example:
Before:
```rust
context.say("hi");
```
After:
```rust
message.channel_id.say("hi")
```
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index d0593fe..0da4b0e 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -138,7 +138,7 @@ lazy_static! { /// /// client.on_message(|context, message| { /// if message.content == "!ping" { -/// context.say("Pong!"); +/// message.channel_id.say("Pong!"); /// } /// }); /// |