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/client/dispatch.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/client/dispatch.rs')
| -rw-r--r-- | src/client/dispatch.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index afe9a43..1332d8e 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -4,7 +4,8 @@ use super::event_store::EventStore; use super::login_type::LoginType; use super::Context; use super::gateway::Shard; -use ::model::{ChannelId, Event, Message}; +use ::model::event::Event; +use ::model::{ChannelId, Message}; #[cfg(feature="framework")] use ::ext::framework::Framework; |