aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-03 10:18:02 -0800
committerZeyla Hellyer <[email protected]>2018-01-03 10:18:11 -0800
commita17fea783cd91b2adcd1330b7038cf3ca2d79a85 (patch)
treec6ef3da3137e0e2b4f4115f542854ab886760e74 /src
parentMove `VecMap` to `utils` (diff)
downloadserenity-a17fea783cd91b2adcd1330b7038cf3ca2d79a85.tar.xz
serenity-a17fea783cd91b2adcd1330b7038cf3ca2d79a85.zip
Remove GameType::Watching
According to [this commit], the game type has been removed. [this commit]: https://github.com/discordapp/discord-api-docs/commit/50999182f307ffda9ac7208a48570586ea446c08#diff-b307d936b736f302bc7cc153f0d8a0a3L779
Diffstat (limited to 'src')
-rw-r--r--src/model/gateway.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 52c8e96..6ad2cda 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -129,35 +129,6 @@ impl Game {
url: None,
}
}
-
- /// Creates a `Game` struct that appears as a `Watching <name>` status.
- ///
- /// **Note**: Maximum `name` length is 128.
- ///
- /// # Examples
- ///
- /// Create a command that sets the current game being played:
- ///
- /// ```rust,no_run
- /// # #[macro_use] extern crate serenity;
- /// #
- /// use serenity::framework::standard::Args;
- /// use serenity::model::gateway::Game;
- ///
- /// command!(watch(ctx, _msg, args) {
- /// let name = args.full();
- /// ctx.set_game(Game::watching(&name));
- /// });
- /// #
- /// # fn main() {}
- /// ```
- pub fn watching(name: &str) -> Game {
- Game {
- kind: GameType::Watching,
- name: name.to_string(),
- url: None,
- }
- }
}
impl<'de> Deserialize<'de> for Game {
@@ -189,8 +160,6 @@ enum_number!(
Streaming = 1,
/// An indicator that the user is listening to something.
Listening = 2,
- /// An indicator that the user is watching something.
- Watching = 3,
}
);
@@ -202,7 +171,6 @@ impl GameType {
Playing => 0,
Streaming => 1,
Listening => 2,
- Watching => 3,
}
}
}