diff options
| author | Austin Hellyer <[email protected]> | 2016-11-25 20:37:44 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-25 20:37:44 -0800 |
| commit | 65ccfa5686f63074907bcea934172e19e188f088 (patch) | |
| tree | 4fbd948363986e2c9ac85feab3a6d8fba8a703e5 /src/lib.rs | |
| parent | Rename PublicChannel to GuildChannel (diff) | |
| download | serenity-65ccfa5686f63074907bcea934172e19e188f088.tar.xz serenity-65ccfa5686f63074907bcea934172e19e188f088.zip | |
Move events into their own module
The events were cluttering the `model` module, and so are now moved into
their own `model::event` module.
As users should not usually have to work with events all that much -
only currently in some rarely used event handlers - this change should
not be much more effort to import from.
i.e.:
```rs
use serenity::model::event::ChannelPinsAckEvent;
```
vs. the now-old:
```rs
use serenity::model::ChannelPinsAckEvent;
```
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -61,19 +61,19 @@ //! } //! ``` //! +//! [`Cache`]: ext/cache/struct.Cache.html //! [`Client::login_bot`]: client/struct.Client.html#method.login_bot //! [`Client::login_user`]: client/struct.Client.html#method.login_user //! [`Client::on_message`]: client/struct.Client.html#method.on_message -//! [`validate_token`]: client/fn.validate_token.html //! [`Connection`]: client/struct.Connection.html //! [`Context`]: client/struct.Context.html -//! [`Event`]: model/enum.Event.html -//! [`Event::MessageCreate`]: model/enum.Event.html#variant.MessageCreate -//! [`Cache`]: ext/cache/struct.Cache.html +//! [`Event`]: model/event/enum.Event.html +//! [`Event::MessageCreate`]: model/event/enum.Event.html#variant.MessageCreate +//! [cache docs]: ext/cache/index.html //! [client's module-level documentation]: client/index.html //! [docs]: https://discordapp.com/developers/docs/intro //! [examples]: https://github.com/zeyla/serenity.rs/tree/master/examples -//! [cache docs]: ext/cache/index.html +//! [`validate_token`]: client/fn.validate_token.html #![allow(doc_markdown, inline_always, unknown_lints)] #![warn(dead_code, enum_glob_use, if_not_else)] |