From d45f285a986ef534c0b81ab9afabb9489df2039b Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 23 Sep 2018 17:15:54 +0200 Subject: [PATCH] Log sender ID to log channel too --- src/pluralkit/bot/channel_logger.py | 5 +++-- src/pluralkit/bot/proxy.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pluralkit/bot/channel_logger.py b/src/pluralkit/bot/channel_logger.py index 63386fa2..7285cced 100644 --- a/src/pluralkit/bot/channel_logger.py +++ b/src/pluralkit/bot/channel_logger.py @@ -47,6 +47,7 @@ class ChannelLogger: channel_id: str, sender_name: str, sender_disc: int, + sender_id: int, member_name: str, member_hid: str, member_avatar_url: str, @@ -67,9 +68,9 @@ class ChannelLogger: embed_set_author_name(embed, channel_name, member_name, system_name, member_avatar_url) embed.set_footer( - text="System ID: {} | Member ID: {} | Sender: {}#{} | Message ID: {}".format(system_hid, member_hid, + text="System ID: {} | Member ID: {} | Sender: {}#{} ({}) | Message ID: {}".format(system_hid, member_hid, sender_name, sender_disc, - message_id)) + sender_id, message_id)) if message_image: embed.set_thumbnail(url=message_image) diff --git a/src/pluralkit/bot/proxy.py b/src/pluralkit/bot/proxy.py index 447c851d..469563c1 100644 --- a/src/pluralkit/bot/proxy.py +++ b/src/pluralkit/bot/proxy.py @@ -200,6 +200,7 @@ class Proxy: channel_id=original_message.channel.id, sender_name=original_message.author.name, sender_disc=original_message.author.discriminator, + sender_id=original_message.author.id, member_name=member.name, member_hid=member.hid, member_avatar_url=member.avatar_url,