diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/gateway.rs | 32 |
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, } } } |