Commit Graph

214 Commits

Author SHA1 Message Date
0aa46e6def Add game data class, replace game_id. 2015-12-23 21:28:18 -05:00
7258a9e700 Delete messages from message cache when you leave the server. 2015-12-19 10:36:11 -05:00
f1f0e169e4 Add __slots__ where appropriate to data classes. 2015-12-19 06:18:12 -05:00
9075d46efd Add on_member_ban and on_member_unban events.
Fixes #58.
2015-12-17 18:22:16 -05:00
63565026c4 Remove on_status event. Superseded by on_member_update. 2015-12-17 06:18:08 -05:00
49d78c69c7 All update related events now pass in the previous state. 2015-12-17 06:05:35 -05:00
4f66d41ca3 Add Server.me attribute to access the Member version of Client.user. 2015-12-16 23:35:05 -05:00
de1c74a399 Make more things into properties.
A lot of the expensive getters were transformed into cached properties
instead. A lot of things that were properties were transformed into
properties as well.
2015-12-16 22:03:16 -05:00
7f0a048299 Fix GUILD_ROLE_DELETE triggering ValueError. 2015-12-14 23:26:22 -05:00
037da750dd avoid potential bug when creating new private msgs
It probably isn't good to rely on an item that was added to a list to
still be the last item, especially if we could have other async
coroutines modify the list. This may not be an actual issue, but having
the function explicitly return the object that it just added to the list
should guarantee that we don't accidentally pull the wrong item from the
end of the list later.
2015-12-13 13:01:05 -05:00
cfc26b894f Fix issue with member.roles being empty. 2015-12-08 00:46:58 -05:00
80b32e769e Handle GUILD_UPDATE 2015-12-06 03:09:55 -05:00
79bdf2a721 Add enumerators instead of strings.
Changes channel type, status and server region into 3.4 enums.
2015-12-04 22:13:17 -05:00
f197c34583 Begin working on asyncio port. 2015-12-04 00:16:34 -05:00