Add channel context to a few activitylog actions

This commit is contained in:
Zeva Rose 2022-03-28 18:15:49 -06:00
parent 2a42ae956c
commit 047cf075f2

View file

@ -176,7 +176,7 @@ class Jarvis(Snake):
] ]
embed = build_embed( embed = build_embed(
title="Command Invoked", title="Command Invoked",
description=f"{ctx.author.mention} invoked a command", description=f"{ctx.author.mention} invoked a command in {ctx.channel.mention}",
fields=fields, fields=fields,
color="#fc9e3f", color="#fc9e3f",
) )
@ -440,7 +440,7 @@ class Jarvis(Snake):
] ]
embed = build_embed( embed = build_embed(
title="Message Edited", title="Message Edited",
description=f"{after.author.mention} edited a message", description=f"{after.author.mention} edited a message in {before.channel.mention}",
fields=fields, fields=fields,
color="#fc9e3f", color="#fc9e3f",
timestamp=after.edited_timestamp, timestamp=after.edited_timestamp,
@ -514,7 +514,7 @@ class Jarvis(Snake):
channel = message.guild.get_channel(modlog.value) channel = message.guild.get_channel(modlog.value)
embed = build_embed( embed = build_embed(
title="Message Deleted", title="Message Deleted",
description=f"{message.author.mention}'s message was deleted", description=f"{message.author.mention}'s message was deleted from {message.channel.mention}",
fields=fields, fields=fields,
color="#fc9e3f", color="#fc9e3f",
) )