Log sender ID to log channel too
This commit is contained in:
parent
739e4342a6
commit
d45f285a98
@ -47,6 +47,7 @@ class ChannelLogger:
|
|||||||
channel_id: str,
|
channel_id: str,
|
||||||
sender_name: str,
|
sender_name: str,
|
||||||
sender_disc: int,
|
sender_disc: int,
|
||||||
|
sender_id: int,
|
||||||
member_name: str,
|
member_name: str,
|
||||||
member_hid: str,
|
member_hid: str,
|
||||||
member_avatar_url: 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_author_name(embed, channel_name, member_name, system_name, member_avatar_url)
|
||||||
embed.set_footer(
|
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,
|
sender_name, sender_disc,
|
||||||
message_id))
|
sender_id, message_id))
|
||||||
|
|
||||||
if message_image:
|
if message_image:
|
||||||
embed.set_thumbnail(url=message_image)
|
embed.set_thumbnail(url=message_image)
|
||||||
|
@ -200,6 +200,7 @@ class Proxy:
|
|||||||
channel_id=original_message.channel.id,
|
channel_id=original_message.channel.id,
|
||||||
sender_name=original_message.author.name,
|
sender_name=original_message.author.name,
|
||||||
sender_disc=original_message.author.discriminator,
|
sender_disc=original_message.author.discriminator,
|
||||||
|
sender_id=original_message.author.id,
|
||||||
member_name=member.name,
|
member_name=member.name,
|
||||||
member_hid=member.hid,
|
member_hid=member.hid,
|
||||||
member_avatar_url=member.avatar_url,
|
member_avatar_url=member.avatar_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user