Rapptz
f1f0e169e4
Add __slots__ where appropriate to data classes.
2015-12-19 06:18:12 -05:00
Rapptz
613214f197
Add Message.clean_content property to get prettified mentions.
2015-12-17 00:15:41 -05:00
Rapptz
ebcb532c38
Change regex from \d+ to [0-9]+ for performance reasons.
...
\d+ includes unicode characters while [0-9]+ doesn't.
2015-12-16 23:46:02 -05:00
Rapptz
9f92536441
Clean-up documentation to use NumPy style docs on remaining classes.
2015-12-16 22:20:54 -05:00
Rapptz
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
Rapptz
c3e7ba3671
Message.channel's Object instance has an is_private attribute now.
...
This was to allow for basic checks such as message.channel.is_private
to succeed at the very least. It is a very small mitigation and not
perfect since it doesn't have every attribute that PrivateChannel
itself has. However you could retrieve the user info through the
Message.author attribute.
2015-11-28 23:06:23 -05:00
Rapptz
ed53f3fb3a
Add caveat note about Message.mention_everyone
2015-11-28 22:35:53 -05:00
Rapptz
101d8d52b6
Add warning for Message.mentions order being non-deterministic.
2015-11-28 20:16:17 -05:00
Rapptz
acbbaa39ad
Add Message.channel_mentions
2015-11-19 23:10:15 -05:00
Rapptz
da37ff16c1
Add get_raw_[channel_]mentions to Message
2015-11-19 23:01:43 -05:00
Rapptz
e88c194e9a
Fix is_private check in mentions array handling.
2015-11-19 22:21:15 -05:00
Rapptz
692a6a3bc6
Fix ordering issue with Message.server
2015-11-18 20:04:27 -05:00
Rapptz
75658f46a2
Message.mentions now returns a list of Member instead of User
2015-11-16 21:18:30 -05:00
Rapptz
c49ff36a7b
Make Message.channel an Object if something goes wrong.
...
Fixes #21
2015-10-27 17:21:08 -04:00
Rapptz
1a13f9ad30
Add Message.server attribute shortcut.
2015-10-23 17:41:28 -04:00
Rapptz
c8535f714e
Documentation fixes for Message.
2015-10-21 21:09:01 -04:00
Rapptz
15b83b2743
Message.author is now either Member or User.
...
Closes #11 .
2015-10-14 05:58:04 -04:00
Rapptz
b4e6591c9d
Refactor parse_time into its own utils file.
2015-09-04 22:00:22 -04:00
Rapptz
b00ad4ad79
Use kwargs if the number of arguments needed is too many.
2015-09-04 21:16:27 -04:00
Rapptz
b7fc383013
Python3 import fixes.
2015-08-28 16:55:40 -04:00
Rapptz
de3bce2b32
Fix issue with some MESSAGE_UPDATE events.
2015-08-24 06:34:38 -04:00
Rapptz
b5a371812f
Some documentation warning fixes.
2015-08-21 23:46:01 -04:00
Rapptz
2edd29684d
Change the way timestamps are parsed.
2015-08-21 23:38:41 -04:00
Rapptz
3e0f09d32c
Initial commit
2015-08-21 18:18:34 -04:00