diff options
| author | SnowyLuma <[email protected]> | 2019-03-09 05:48:23 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-09 00:37:49 -0500 |
| commit | 42a7c4f7e5caa7baf555e86b52249419ce33acfc (patch) | |
| tree | 38fa7c675438069fa74b439a551ba36aa0bc521c /discord/utils.py | |
| parent | Add support for guild descriptions (diff) | |
| download | discord.py-42a7c4f7e5caa7baf555e86b52249419ce33acfc.tar.xz discord.py-42a7c4f7e5caa7baf555e86b52249419ce33acfc.zip | |
Add support for guild banners
Document banner attribute of Guild and Invite
Update discord/utils.py
Co-Authored-By: SnowyLuma <[email protected]>
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/utils.py b/discord/utils.py index acb62798..42789186 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -294,8 +294,8 @@ async def sane_wait_for(futures, *, timeout, loop): raise asyncio.TimeoutError() def valid_icon_size(size): - """Icons must be power of 2 within [16, 2048].""" - return not size & (size - 1) and size in range(16, 2049) + """Icons must be power of 2 within [16, 4096].""" + return not size & (size - 1) and size in range(16, 4097) class SnowflakeList(array.array): """Internal data storage class to efficiently store a list of snowflakes. |