aboutsummaryrefslogtreecommitdiff
path: root/src/model/gateway.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-12-16 13:37:32 +0100
committeracdenisSK <[email protected]>2017-12-16 13:37:43 +0100
commit06562435343be7241c0efad3a70a7eff19e3bdc6 (patch)
treee6ec2ca337dd745fe22370987b8b8999f9e9843b /src/model/gateway.rs
parentFix deserialization of `Guild::application_id` (diff)
downloadserenity-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.rs6
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));
/// });
/// #