mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add Guild.splash_url_as
This commit is contained in:
1 parent
fed01c5e15
commit
3727ea9811
2 files changed
+38
-7
No files matched your search
+2
-2
@@ -290,8 +290,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, 1024]."""
|
||||
return ((size != 0) and not (size & (size - 1))) and size in range(16, 1025)
|
||||
"""Icons must be power of 2 within [16, 2048]."""
|
||||
return ((size != 0) and not (size & (size - 1))) and size in range(16, 2049)
|
||||
|
||||
class SnowflakeList(array.array):
|
||||
"""Internal data storage class to efficiently store a list of snowflakes.
|
||||
|
||||
Reference in new issue
Block a user