diff options
author | 2022-12-14 16:49:31 +0800 | |
---|---|---|
committer | 2022-12-14 16:49:31 +0800 | |
commit | daf92c63d23ed3d4664c9003ae59d0aa4965e00a (patch) | |
tree | 1a3b07ffe5c49b944d5f28722ef2c82cbebec726 | |
parent | Merge branch 'snekbox-files' of https://github.com/python-discord/bot into sn... (diff) |
Update file size limit comment
-rw-r--r-- | bot/exts/utils/snekio.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/utils/snekio.py b/bot/exts/utils/snekio.py index 7c5fba648..a7f84a241 100644 --- a/bot/exts/utils/snekio.py +++ b/bot/exts/utils/snekio.py @@ -8,8 +8,9 @@ from pathlib import Path from discord import File -# Note discord upload limit is 8 MB, or 50 MB for lvl 2 boosted servers -FILE_SIZE_LIMIT = 8 * 1024 * 1024 # 8 MiB +# Note discord bot upload limit is 8 MiB per file, +# or 50 MiB for lvl 2 boosted servers +FILE_SIZE_LIMIT = 8 * 1024 * 1024 def sizeof_fmt(num: int, suffix: str = "B") -> str: |