diff --git a/discord/file.py b/discord/file.py index 0366cee58..d1182417f 100644 --- a/discord/file.py +++ b/discord/file.py @@ -38,7 +38,9 @@ __all__ = ( def _strip_spoiler(filename: str) -> Tuple[str, bool]: - stripped = filename.lstrip('SPOILER_') + stripped = filename + while stripped.startswith('SPOILER_'): + stripped = stripped[8:] # len('SPOILER_') spoiler = stripped != filename return stripped, spoiler