diff options
| author | acdenisSK <[email protected]> | 2017-12-16 13:37:32 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-12-16 13:37:43 +0100 |
| commit | 06562435343be7241c0efad3a70a7eff19e3bdc6 (patch) | |
| tree | e6ec2ca337dd745fe22370987b8b8999f9e9843b /src/model/gateway.rs | |
| parent | Fix deserialization of `Guild::application_id` (diff) | |
| download | serenity-06562435343be7241c0efad3a70a7eff19e3bdc6.tar.xz serenity-06562435343be7241c0efad3a70a7eff19e3bdc6.zip | |
Revamp the internals of `Args`
Fixes #180, however this partially breaks `single_zc` and `multiple_quoted`, but since they're minor it's better to fix them later for now.
Diffstat (limited to 'src/model/gateway.rs')
| -rw-r--r-- | src/model/gateway.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs index d38a06a..c1f6fc9 100644 --- a/src/model/gateway.rs +++ b/src/model/gateway.rs @@ -52,7 +52,7 @@ impl Game { /// use serenity::model::Game; /// /// command!(game(ctx, _msg, args) { - /// let name = args.join(" "); + /// let name = args.full(); /// ctx.set_game(Game::playing(&name)); /// }); /// # @@ -112,7 +112,7 @@ impl Game { /// use serenity::model::Game; /// /// command!(listen(ctx, _msg, args) { - /// let name = args.join(" "); + /// let name = args.full(); /// ctx.set_game(Game::listening(&name)); /// }); /// # @@ -141,7 +141,7 @@ impl Game { /// use serenity::model::Game; /// /// command!(watch(ctx, _msg, args) { - /// let name = args.join(" "); + /// let name = args.full(); /// ctx.set_game(Game::watching(&name)); /// }); /// # |