mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Add constant for the default file size limit
This commit is contained in:
1 parent
8d583ea71b
commit
e870bb1335
3 files changed
+5
-4
No files matched your search
@@ -436,7 +436,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
|
||||
|
||||
.. versionadded:: 2.3
|
||||
"""
|
||||
return self.guild.filesize_limit if self.guild is not None else 26214400
|
||||
return self.guild.filesize_limit if self.guild is not None else discord.utils.DEFAULT_FILE_SIZE_LIMIT_BYTES
|
||||
|
||||
@discord.utils.cached_property
|
||||
def guild(self) -> Optional[Guild]:
|
||||
|
||||
Reference in new issue
Block a user