aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/incidents.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py
index 7d0984bd1..9ce892024 100644
--- a/bot/exts/moderation/incidents.py
+++ b/bot/exts/moderation/incidents.py
@@ -232,14 +232,12 @@ async def extract_message_links(message: discord.Message, bot: Bot) -> t.Optiona
if message_links:
embeds = []
- for message_link in message_links:
+ for message_link in message_links[:10]:
ctx = await bot.get_context(message)
embed = await make_message_link_embed(ctx, message_link[0])
if embed:
embeds.append(embed)
- return embeds[:10]
-
log.trace(
f"Skipping discord message link detection on {message.id}: message doesn't qualify."
)