aboutsummaryrefslogtreecommitdiff
path: root/src/model/event.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix Member methods due to variant joined_at valuesZeyla Hellyer2017-03-201-4/+8
| | | | | | | | | | | | | | | Fix an issue where the library would check the Id of the guild that a member is in by checking the Member's ID and joined_at value with those of the members of guilds present in the cache. Performing this check would have the issue of where a joined_at for a member received over websocket would potentially have a varying value than that of the same member retrieved over REST. To fix this, attach the relevant guild's Id to the member on creation, where the Id is available. Fixes #68.
* Fix a not-if-else lintZeyla Hellyer2017-02-121-0/+2
|
* Register the 'status' setting for usersAustin Hellyer2017-01-271-0/+2
|
* Fix a payload decodeAustin Hellyer2017-01-091-2/+0
| | | | Resume doesn't have a heartbeat_interval, so don't try to decode it.
* Code style cleanupAustin Hellyer2017-01-081-44/+44
|
* Match event namesAustin Hellyer2016-12-221-107/+63
|
* Simplify event decodingAustin Hellyer2016-12-221-62/+62
|
* Abstract event decoders to associated functionsAustin Hellyer2016-12-221-260/+682
| | | | | | Abstract the logic from simply `Event::decode` and `VoiceEvent::decode` to each individual event variant struct, in the form of associated `decode` functions.
* Change all try's into ?sacdenisSK2016-12-071-132/+132
| | | This breaks compatibility with < 1.13, but we didn't support that anyway.
* Clean up the codebaseAustin Hellyer2016-11-291-31/+118
|
* Add Context, REST, and model documentationfwrs2016-11-271-0/+2
| | | | | Add documentation for Context methods, as well as brief documentation for REST functions and model definitions.
* Move events into their own moduleAustin Hellyer2016-11-251-0/+761
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; ```