diff options
| author | 2021-02-17 15:10:47 +0200 | |
|---|---|---|
| committer | 2021-02-17 15:10:47 +0200 | |
| commit | 480dd04bda402e86337bd9a3fb5b236f661c6055 (patch) | |
| tree | d2285278862503b0238c543a976f21344fd29dc6 | |
| parent | Add missing None reason returns of filters (diff) | |
Rename filter trigger reason from entry command to reason
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/filters/filtering.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/filters/filtering.py b/bot/exts/filters/filtering.py index 0f403ca92..c0fa431f1 100644 --- a/bot/exts/filters/filtering.py +++ b/bot/exts/filters/filtering.py @@ -344,7 +344,7 @@ class Filtering(Cog): ping_everyone = Filter.ping_everyone and _filter.get("ping_everyone", True) eval_msg = "using !eval " if is_eval else "" - footer = f"Entry comment: {reason}" if reason else None + footer = f"Reason: {reason}" if reason else None message = ( f"The {filter_name} {_filter['type']} was triggered by {format_user(msg.author)} " f"{channel_str} {eval_msg}with [the following message]({msg.jump_url}):\n\n" @@ -388,7 +388,7 @@ class Filtering(Cog): if name == "filter_invites" and match is not True: additional_embeds = [] for _, data in match.items(): - reason = f"\n**Entry comment:**\n{data['reason']}" if data.get('reason') else "" + reason = f"\n**Reason:**\n{data['reason']}" if data.get('reason') else "" embed = discord.Embed(description=( f"**Members:**\n{data['members']}\n" f"**Active:**\n{data['active']}" |