99 Commits

Author SHA1 Message Date
Rapptz
229c471106 More broken Channel references. 2017-05-20 08:48:04 -04:00
Rapptz
f4e01b3a92 Make supported operations stand out more than attributes. 2017-05-20 02:08:34 -04:00
Rapptz
8526995004 Minor speedup when doing comparisons.
Shred 2 getattr calls + 1 global lookup to 1 global lookup.
2017-05-18 05:15:06 -04:00
Rapptz
8e34a256a4 Fix User == Member comparisons. 2017-05-18 05:12:48 -04:00
Rapptz
f73eb087c9 Use describe instead of tables for supported operations. 2017-05-13 18:48:14 -04:00
Rapptz
b44bba6ee6 First pass at documentation reform. 2017-05-12 20:14:34 -04:00
Rapptz
058f1f13eb Fix premium key being missing in profile endpoint. 2017-03-13 00:26:43 -04:00
Rapptz
f7524c9919 Add User.is_blocked and User.is_friend shortcut methods. 2017-02-27 23:29:52 -05:00
Rapptz
2fe5da836c Add User.avatar_url_as to convert a user's avatar. 2017-02-22 23:17:52 -05:00
Rapptz
bfe2b4fc03 Fix Member.display_name to work. 2017-02-10 03:10:30 -05:00
Rapptz
ca81f0c3fc Better group DM support. 2017-02-09 20:50:02 -05:00
Rapptz
1cf7b0e2c8 Add ClientUser.friends and ClientUser.blocked 2017-01-27 00:25:04 -05:00
Rapptz
02f30f21c4 Implement User.profile coroutine to get a user's profile. 2017-01-24 22:00:27 -05:00
Rapptz
ff9f5749e1 Update copyright year to 2017. 2017-01-20 23:19:19 -05:00
Rapptz
4c981ee631 Add support for relationships. 2017-01-20 19:28:43 -05:00
Rapptz
e2acf7b2b9 Add ClientUser.premium boolean. 2017-01-20 15:01:10 -05:00
Rapptz
fa384f2114 Make ClientUser separate from a regular User.
This removes Client.edit_profile in favour of ClientUser.edit.
2017-01-19 19:37:11 -05:00
Rapptz
92dd519b1a Remove _get_guild_id from Messageable ABC. 2017-01-14 19:22:26 -05:00
Rapptz
7e2c016eaa Remove extraneous unneeded hash calls. 2017-01-10 04:37:45 -05:00
Rapptz
36a5925908 Return default avatar URL if an avatar is not given for User.avatar_url
Also use the CDN URL like Jake has always requested.
2017-01-09 03:41:01 -05:00
Rapptz
63604e0566 Use CDN URL for default avatars. 2017-01-09 03:35:51 -05:00
Rapptz
808a05ff2d Move global user cache to a WeakValueDictionary. 2017-01-04 05:16:59 -05:00
Rapptz
7690455b21 Make User and Member messageable. 2017-01-03 09:52:12 -05:00
Rapptz
dceba9d962 Add useful repr to all data classes. 2017-01-03 09:52:06 -05:00
Rapptz
d1d54a468a Rename Server to Guild everywhere. 2017-01-03 09:51:54 -05:00
Rapptz
e4b16851bf Slots use tuples instead now. 2017-01-03 09:51:50 -05:00
Rapptz
45c729b167 Switch IDs to use int instead of str 2017-01-03 09:51:49 -05:00
Rapptz
044b0824e6 Begin working on the rewrite. 2017-01-03 09:51:47 -05:00
Rapptz
4d59bca4aa Support animated avatars in User.avatar_url. 2016-12-23 00:43:19 -05:00
Rapptz
e2bfa90eef Add User.mentioned_in helper to check if a message mentions you. 2016-04-29 20:11:13 -04:00
Khazhismel Kumykov
29b01f20ba Fix Member.display_name returning None
If Member.nick was None, getattr would happily return None, not the
default value.
2016-04-29 15:13:15 -04:00
Rapptz
e112536ce2 Simplify User.display_name a bit. 2016-04-29 08:27:19 -04:00
Rapptz
133e8d3a44 Add support for server specific nicknames. 2016-04-29 06:39:21 -04:00
Rapptz
fa14c72836 Add User.bot attribute to check if a user is a bot account. 2016-04-09 21:42:25 -04:00
Rapptz
f93fa8a0b2 User.__str__ now includes the discriminator. 2016-04-01 05:48:31 -04:00
Khazhismel Kumykov
5f776f369d Add default avatar property to User. 2016-03-31 14:38:03 -04:00
Rapptz
f437ffe44e Add created_at properties for Server and User. 2016-03-06 03:47:25 -05:00
Rapptz
86e9b62303 Move Member.permissions_in to User.permissions_in. 2016-01-21 23:00:51 -05:00
Rapptz
db4cc791dd Update license of files to 2016. 2016-01-04 22:28:29 -05:00
Rapptz
97874293e2 Revert "Use super() in classes that could be subclassed."
This reverts commit 948f565b430d80f782d0b7c264cc0b27aa1ec0b2.
2016-01-04 20:26:59 -05:00
Rapptz
948f565b43 Use super() in classes that could be subclassed. 2016-01-04 18:25:20 -05:00
Rapptz
f1f0e169e4 Add __slots__ where appropriate to data classes. 2015-12-19 06:18:12 -05:00
Rapptz
51d91c2a82 Most data classes now support hashing. 2015-12-17 00:32:54 -05:00
Rapptz
9f92536441 Clean-up documentation to use NumPy style docs on remaining classes. 2015-12-16 22:20:54 -05:00
Rapptz
9137d92f67 All data classes now support !=, == and str(obj). 2015-12-13 22:53:48 -05:00
Rapptz
ab46afee1d Changed functions that return a constant value into properties. 2015-12-13 20:05:58 -05:00
Rapptz
17171aaa60 Switch to NumPy style documentation. 2015-12-04 23:43:31 -05:00
Rapptz
7c060ee7f6 Document supported operations in discord.User 2015-11-27 17:59:22 -05:00
Rapptz
3e0f09d32c Initial commit 2015-08-21 18:18:34 -04:00