forked from jocadbz/os-release-bot
Add feature to display who reported the message
parent
66e0d4707e
commit
f9572d4cd2
1
bot.py
1
bot.py
|
@ -94,6 +94,7 @@ async def report_message(interaction: discord.Interaction, message: discord.Mess
|
|||
embed.timestamp = message.created_at
|
||||
url_view = discord.ui.View()
|
||||
url_view.add_item(discord.ui.Button(label='Go to Message', style=discord.ButtonStyle.url, url=message.jump_url))
|
||||
embed.add_field(name="Reported by:", value=interaction.user, inline=False)
|
||||
await log_channel.send(embed=embed, view=url_view)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue