diff options
| author | 2020-08-09 14:07:45 -0400 | |
|---|---|---|
| committer | 2020-08-09 14:07:45 -0400 | |
| commit | ffd17e14bdabd27c61d49b07318dd0b52ef5146a (patch) | |
| tree | 44a9787f8d6b834095568035617a664fa49b167d | |
| parent | Remove unnecessary edits during pagination (diff) | |
| parent | Merge branch 'master' into bug/util/1079/long-poll-titles (diff) | |
Merge pull request #1085 from python-discord/bug/util/1079/long-poll-titles
Utils: show error message for long poll titles
| -rw-r--r-- | bot/cogs/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py index 91c6cb36e..d96abbd5a 100644 --- a/bot/cogs/utils.py +++ b/bot/cogs/utils.py @@ -232,6 +232,8 @@ class Utils(Cog): A maximum of 20 options can be provided, as Discord supports a max of 20 reactions on a single message. """ + if len(title) > 256: + raise BadArgument("The title cannot be longer than 256 characters.") if len(options) < 2: raise BadArgument("Please provide at least 2 options.") if len(options) > 20: |