aboutsummaryrefslogtreecommitdiff
path: root/src/model/gateway.rs
diff options
context:
space:
mode:
authorIllia K <[email protected]>2016-11-28 12:28:23 +0000
committerAustin Hellyer <[email protected]>2016-11-28 10:16:22 -0800
commit6c2c7b73d9fb5ed46b642e323065c560ffef9ef2 (patch)
tree8cb587fd6fcd8e3e06f8960475ea2a54432e3d18 /src/model/gateway.rs
parentAdd an initial tiny test suite to get Travis going (diff)
downloadserenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.tar.xz
serenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.zip
Improve docs and add new message builder methods
Add documentation for some missing methods - such as Game methods - and add more methods to the Message Builder.
Diffstat (limited to 'src/model/gateway.rs')
-rw-r--r--src/model/gateway.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 101f050..30ed695 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -3,6 +3,7 @@ use super::*;
use ::internal::prelude::*;
impl Game {
+ /// Creates a `Game` struct that appears as a `**Playing** <name>` status.
#[cfg(feature="methods")]
pub fn playing(name: &str) -> Game {
Game {
@@ -12,6 +13,7 @@ impl Game {
}
}
+ /// Creates a `Game` struct that appears as a `**Streaming** <name>` status.
#[cfg(feature="methods")]
pub fn streaming(name: &str, url: &str) -> Game {
Game {