aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-09-26 11:25:50 +0000
committerGravatar Leon Sandøy <[email protected]>2018-09-26 11:25:50 +0000
commit3e84358cc328f22594fe6e67343c8e859c28a560 (patch)
tree62a8959aabb9501ca66478476abf8a6439d6360d
parentMerge branch 'patch-1' into 'master' (diff)
parentAdded link to relevant message in filtered alerts (diff)
Merge branch 'jump-to-context' into 'master'
Include a link to the relevant message on each filter alert. See merge request python-discord/projects/bot!68
-rw-r--r--bot/cogs/filtering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index 586c99174..70254fd88 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -111,8 +111,8 @@ class Filtering:
message = (
f"The {filter_name} {_filter['type']} was triggered "
f"by **{msg.author.name}#{msg.author.discriminator}** "
- f"(`{msg.author.id}`) in <#{msg.channel.id}> with the "
- f"following message:\n\n"
+ f"(`{msg.author.id}`) in <#{msg.channel.id}> with [the "
+ f"following message]({msg.jump_url}):\n\n"
f"{msg.content}"
)