Hornwitser
d58fc0ccee
[lint] Remove unused imports
Left over from various refactoring and rewrites.
8 years ago
khazhyk
2c7a855e11
Revert "Ensure gif avatar urls end in `.gif`"
This reverts commit 456390f417 .
This commit isn't needed anymore - the image proxy now properly
handles gifs that do not end in .gif
8 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
8 years ago
Tobotimus
3112e1c17e
Add intersphinx
9 years ago
khazhyk
456390f417
Ensure gif avatar urls end in `.gif`
This is a workaround for discord having trouble animating gifs if
the url does not end in exactly `.gif`. Since avatar_url is common
for thumbnails etc., adding this workaround here is handy, and
likely restores expected behavior (animated avatars animating).
9 years ago
Mippy (William)
b5bc5a36ce
Fix Spelling Error
9 years ago
khazhyk
ebecb90c96
is_avatar_animated should always return bool
Was returning None when User.avatar was None
9 years ago
Rapptz
51a39b5b1c
Rename avatar_is_animated to is_avatar_animated and make it a method.
9 years ago
khazhyk
12ca0d9b16
avatar_url_as improvements
static_format will only apply to static (not animated) avatars. Makes
it easier to grab gif-or-'format' of an avatar. Defaults to 'webp'
This is for a similar usecase to avatar_url_as(format=None), except
one can specify the non-animated format, instead of always using
webp.
add User.avatar_is_animated property.
add validation for avatar_url_as, since invalid arguments result in
a url which will return 415, which can be confusing for a user. (They
just see a blank page)
Discord accepts size=16-2048, but images cap at 1024px, so accept 16-1024
Discord accepts "jpg", "jpeg", "png", "gif", and "webp", *unless* the
avatar is not animated, in which case "gif" is not supported. :\
9 years ago
Rapptz
25a1d8c300
Add support for user flags in Profile.
9 years ago
Rapptz
f588876587
Use Python3Lexer instead of PythonLexer for pygments.
9 years ago
Rapptz
229c471106
More broken Channel references.
9 years ago
Rapptz
f4e01b3a92
Make supported operations stand out more than attributes.
9 years ago
Rapptz
8526995004
Minor speedup when doing comparisons.
Shred 2 getattr calls + 1 global lookup to 1 global lookup.
9 years ago
Rapptz
8e34a256a4
Fix User == Member comparisons.
9 years ago
Rapptz
f73eb087c9
Use describe instead of tables for supported operations.
9 years ago
Rapptz
b44bba6ee6
First pass at documentation reform.
9 years ago
Rapptz
058f1f13eb
Fix premium key being missing in profile endpoint.
9 years ago
Rapptz
f7524c9919
Add User.is_blocked and User.is_friend shortcut methods.
9 years ago
Rapptz
2fe5da836c
Add User.avatar_url_as to convert a user's avatar.
10 years ago
Rapptz
bfe2b4fc03
Fix Member.display_name to work.
10 years ago
Rapptz
ca81f0c3fc
Better group DM support.
10 years ago
Rapptz
1cf7b0e2c8
Add ClientUser.friends and ClientUser.blocked
10 years ago
Rapptz
02f30f21c4
Implement User.profile coroutine to get a user's profile.
10 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
10 years ago
Rapptz
4c981ee631
Add support for relationships.
10 years ago
Rapptz
e2acf7b2b9
Add ClientUser.premium boolean.
10 years ago
Rapptz
fa384f2114
Make ClientUser separate from a regular User.
This removes Client.edit_profile in favour of ClientUser.edit.
10 years ago
Rapptz
92dd519b1a
Remove _get_guild_id from Messageable ABC.
10 years ago
Rapptz
7e2c016eaa
Remove extraneous unneeded hash calls.
10 years ago
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.
10 years ago
Rapptz
63604e0566
Use CDN URL for default avatars.
10 years ago
Rapptz
808a05ff2d
Move global user cache to a WeakValueDictionary.
10 years ago
Rapptz
7690455b21
Make User and Member messageable.
10 years ago
Rapptz
dceba9d962
Add useful repr to all data classes.
10 years ago
Rapptz
d1d54a468a
Rename Server to Guild everywhere.
10 years ago
Rapptz
e4b16851bf
Slots use tuples instead now.
10 years ago
Rapptz
45c729b167
Switch IDs to use int instead of str
10 years ago
Rapptz
044b0824e6
Begin working on the rewrite.
10 years ago
Rapptz
4d59bca4aa
Support animated avatars in User.avatar_url.
10 years ago
Rapptz
e2bfa90eef
Add User.mentioned_in helper to check if a message mentions you.
10 years ago
Khazhismel Kumykov
29b01f20ba
Fix Member.display_name returning None
If Member.nick was None, getattr would happily return None, not the
default value.
10 years ago
Rapptz
e112536ce2
Simplify User.display_name a bit.
10 years ago
Rapptz
133e8d3a44
Add support for server specific nicknames.
10 years ago
Rapptz
fa14c72836
Add User.bot attribute to check if a user is a bot account.
10 years ago
Rapptz
f93fa8a0b2
User.__str__ now includes the discriminator.
10 years ago
Khazhismel Kumykov
5f776f369d
Add default avatar property to User.
10 years ago
Rapptz
f437ffe44e
Add created_at properties for Server and User.
10 years ago
Rapptz
86e9b62303
Move Member.permissions_in to User.permissions_in.
11 years ago
Rapptz
db4cc791dd
Update license of files to 2016.
11 years ago