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/model/mod.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/model/mod.rs')
| -rw-r--r-- | src/model/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs index 5d1540b..832cda4 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1,8 +1,10 @@ -pub mod permissions; - #[macro_use] mod utils; +pub mod event; +pub mod permissions; + + mod channel; mod gateway; mod guild; |