aboutsummaryrefslogtreecommitdiff
path: root/src/model/mod.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/mod.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/mod.rs')
-rw-r--r--src/model/mod.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs
index 5aad290..c2883ce 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -23,26 +23,18 @@ pub mod permissions;
mod channel;
mod gateway;
mod guild;
-mod id;
+mod invite;
mod misc;
mod user;
-
-#[cfg(feature="methods")]
-mod invite;
-#[cfg(feature="methods")]
mod webhook;
pub use self::channel::*;
pub use self::gateway::*;
pub use self::guild::*;
-pub use self::id::*;
+pub use self::invite::*;
pub use self::misc::*;
pub use self::permissions::Permissions;
pub use self::user::*;
-
-#[cfg(feature="methods")]
-pub use self::invite::*;
-#[cfg(feature="methods")]
pub use self::webhook::*;
use self::utils::*;