aboutsummaryrefslogtreecommitdiff
path: root/src/model/gateway.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-23 12:16:06 -0800
committerAustin Hellyer <[email protected]>2017-01-23 12:16:06 -0800
commit651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0 (patch)
treedcf452e8fe73411af331678a769cb769a32dd12e /src/model/gateway.rs
parentFix no-framework compilation (diff)
downloadserenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.tar.xz
serenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.zip
Switch to a mostly-fully OOP approach
The context is now strictly in relation to the context of the current channel related to the event, if any. See Context::say for a list of events that the context can be used for.
Diffstat (limited to 'src/model/gateway.rs')
-rw-r--r--src/model/gateway.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 769045c..9758e4b 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -26,7 +26,6 @@ impl Game {
/// Creates a `Game` struct that appears as a `Playing <name>` status.
///
/// **Note**: Maximum `name` length is 128.
- #[cfg(feature="methods")]
pub fn playing(name: &str) -> Game {
Game {
kind: GameType::Playing,
@@ -38,7 +37,6 @@ impl Game {
/// Creates a `Game` struct that appears as a `Streaming <name>` status.
///
/// **Note**: Maximum `name` length is 128.
- #[cfg(feature="methods")]
pub fn streaming(name: &str, url: &str) -> Game {
Game {
kind: GameType::Streaming,