aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-06-14 00:10:33 +0200
committerGravatar Johannes Christ <[email protected]>2018-06-15 16:55:58 +0200
commit7d2b78483a1df2f7b0fe9b43834410a5df8c5e48 (patch)
tree202758c352378bfc762998c16c02d4baeca08c1f
parentcommitting to force redeploy (diff)
Fix `doc` breaking for weird signatures.
-rw-r--r--bot/cogs/doc.py2
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,