diff options
| author | 2022-09-08 23:17:25 +0100 | |
|---|---|---|
| committer | 2022-09-08 23:17:25 +0100 | |
| commit | f924dd24a6846dcc00f96c7158111cfffc092014 (patch) | |
| tree | 519c3a37f46092f73da05baba5b019ca77e01f1b | |
| parent | send the list of pre-defined keywords along with each invoked rule (diff) | |
send the "no-match" error message in pure text format
| -rw-r--r-- | bot/exts/info/information.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 54fa62d31..9dd0a6d45 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -560,12 +560,9 @@ class Information(Cog): if not rules and not final_rules: # This would mean that we didn't find a match for the used keyword - rules_embed.description = ( + await ctx.send( f"There are currently no rules that correspond to keyword: {keyword}." - " If you think it should be added, please ask our admins and they'll take care of the rest." - ) - - await ctx.send(embed=rules_embed) + "If you think it should be added, please ask our admins and they'll take care of the rest.") return await LinePaginator.paginate(final_rules, ctx, rules_embed, max_lines=3) |