diff options
| author | 2018-06-14 00:10:33 +0200 | |
|---|---|---|
| committer | 2018-06-15 16:55:58 +0200 | |
| commit | 7d2b78483a1df2f7b0fe9b43834410a5df8c5e48 (patch) | |
| tree | 202758c352378bfc762998c16c02d4baeca08c1f | |
| parent | committing to force redeploy (diff) | |
Fix `doc` breaking for weird signatures.
| -rw-r--r-- | bot/cogs/doc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index d84de0ba3..26079e3ec 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -3,6 +3,7 @@ import functools import logging import random import re +import textwrap from collections import OrderedDict from typing import Dict, List, Optional, Tuple @@ -258,6 +259,7 @@ class Doc: description="This appears to be a generic page not tied to a specific symbol." ) + signature = textwrap.shorten(signature, 500) return discord.Embed( title=f'`{symbol}`', url=permalink, |