diff options
author | 2021-11-27 16:10:40 -0700 | |
---|---|---|
committer | 2021-11-27 16:10:40 -0700 | |
commit | 94944ca0bd3dae1c97483f93563846eea7380dfb (patch) | |
tree | 8abfece86508e3c1809ba7dd05534e12ab05e089 | |
parent | Limit length of the invalid rule indices message (diff) |
Change placeholder for invalid rules message shortening
... is used everywhere else across the codebase where extwrap.shorten is used, so I'm making it match here.
-rw-r--r-- | bot/exts/info/site.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/site.py b/bot/exts/info/site.py index 3b4b561c7..bcb04c909 100644 --- a/bot/exts/info/site.py +++ b/bot/exts/info/site.py @@ -125,7 +125,8 @@ class Site(Cog): # Remove duplicates and sort the rule indices rules = sorted(set(rules)) - invalid = shorten(', '.join(str(index) for index in rules if index < 1 or index > len(full_rules)), 50) + invalid = shorten(', '.join(str(index) for index in rules if index + < 1 or index > len(full_rules)), 50, placeholder='...') if invalid: await ctx.send(f":x: Invalid rule indices: {invalid}") |