diff options
| author | Maiddog <[email protected]> | 2017-08-22 06:27:10 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-22 13:27:10 +0200 |
| commit | cb072aab60ac67bc4d52aed3554300c1c5e83081 (patch) | |
| tree | fc00dd5d91b989582e10a93afb4713f1fbd6c88f /src/model/gateway.rs | |
| parent | Fix presence updates (diff) | |
| download | serenity-cb072aab60ac67bc4d52aed3554300c1c5e83081.tar.xz serenity-cb072aab60ac67bc4d52aed3554300c1c5e83081.zip | |
Fix tests (#145)
Diffstat (limited to 'src/model/gateway.rs')
| -rw-r--r-- | src/model/gateway.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs index 6153abb..1b3a40b 100644 --- a/src/model/gateway.rs +++ b/src/model/gateway.rs @@ -47,6 +47,7 @@ impl Game { /// ```rust,no_run /// # #[macro_use] extern crate serenity; /// # + /// use serenity::framework::standard::Args; /// use serenity::model::Game; /// /// command!(game(ctx, _msg, args) { @@ -75,12 +76,14 @@ impl Game { /// ```rust,no_run /// # #[macro_use] extern crate serenity; /// # + /// use serenity::framework::standard::Args; /// use serenity::model::Game; /// /// // Assumes command has min_args set to 2. - /// command!(stream(ctx, _msg, args, stream: String) { - /// let name = args[1..].join(" "); - /// ctx.set_game(Game::streaming(&name, &stream)); + /// command!(stream(ctx, _msg, args) { + /// # let stream_url = String::from(""); + /// let name = args.full(); + /// ctx.set_game(Game::streaming(&name, &stream_url)); /// }); /// # /// # fn main() {} |