diff options
| author | 2020-07-15 07:30:02 +0200 | |
|---|---|---|
| committer | 2020-07-15 07:30:02 +0200 | |
| commit | 226eb68a4d397c14c68566f60a2de4a3704cf696 (patch) | |
| tree | 5f95bd0b3266eff75f6329d7bf5fb03511f4559a | |
| parent | Restore 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.py | 2 |
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) |