aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-15 07:30:02 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-15 07:30:02 +0200
commit226eb68a4d397c14c68566f60a2de4a3704cf696 (patch)
tree5f95bd0b3266eff75f6329d7bf5fb03511f4559a
parentRestore DM user caching. (diff)
Add the user ID to the username in dm relays.
Without this, it is difficult to know precisely who the user that is DMing us is, which might be useful to us. https://github.com/python-discord/bot/issues/1041
-rw-r--r--bot/cogs/dm_relay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/dm_relay.py b/bot/cogs/dm_relay.py
index 9a68b5341..d3637d34b 100644
--- a/bot/cogs/dm_relay.py
+++ b/bot/cogs/dm_relay.py
@@ -80,7 +80,7 @@ class DMRelay(Cog):
await send_webhook(
webhook=self.webhook,
content=message.clean_content,
- username=message.author.display_name,
+ username=f"{message.author.display_name} ({message.author.id})",
avatar_url=message.author.avatar_url
)
await self.dm_cache.set("last_user", message.author.id)