aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2020-10-02 19:57:07 +0100
committerGravatar wookie184 <[email protected]>2020-10-02 19:57:07 +0100
commit1481d8feaa4c155e13da2b1c5f9f9544d89e90c4 (patch)
treee5b5d19c7b26deee46657d7262c6bf7556f08354
parent Add use_cached argument to send_attachments, and change it to default to False (diff)
Changed dm_relay to include user id in webhook when sending attachments.
-rw-r--r--bot/exts/moderation/dm_relay.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/moderation/dm_relay.py b/bot/exts/moderation/dm_relay.py
index 14263e004..4d5142b55 100644
--- a/bot/exts/moderation/dm_relay.py
+++ b/bot/exts/moderation/dm_relay.py
@@ -90,7 +90,11 @@ class DMRelay(Cog):
# Handle any attachments
if message.attachments:
try:
- await send_attachments(message, self.webhook)
+ await send_attachments(
+ message,
+ self.webhook,
+ username=f"{message.author.display_name} ({message.author.id})"
+ )
except (discord.errors.Forbidden, discord.errors.NotFound):
e = discord.Embed(
description=":x: **This message contained an attachment, but it could not be retrieved**",