diff options
| author | acdenisSK <[email protected]> | 2017-11-04 20:06:40 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-11-04 20:06:40 +0100 |
| commit | 0bd519f4ef9784d0fb5663d74db0d567f0bb1ae5 (patch) | |
| tree | cc2a6f44e97e42420507964dab4662fcccd9beb3 /src/client/context.rs | |
| parent | Fix Help-Commands to list all eligible commands in DMs. (#212) (diff) | |
| parent | Bump to v0.4.3 (diff) | |
| download | serenity-0bd519f4ef9784d0fb5663d74db0d567f0bb1ae5.tar.xz serenity-0bd519f4ef9784d0fb5663d74db0d567f0bb1ae5.zip | |
Merge v0.4.3
Diffstat (limited to 'src/client/context.rs')
| -rw-r--r-- | src/client/context.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/context.rs b/src/client/context.rs index 9b89cde..cc7ee63 100644 --- a/src/client/context.rs +++ b/src/client/context.rs @@ -281,6 +281,8 @@ impl Context { /// playing: /// /// ```rust,no_run + /// # #[cfg(feature = "model")] + /// # fn main() { /// # use serenity::prelude::*; /// # use serenity::model::*; /// # @@ -303,6 +305,10 @@ impl Context { /// let mut client = Client::new("token", Handler).unwrap(); /// /// client.start().unwrap(); + /// # } + /// + /// # #[cfg(not(feature = "model"))] + /// # fn main() {} /// ``` /// /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online |