diff --git a/app.py b/app.py index 901719f..f41f4ae 100644 --- a/app.py +++ b/app.py @@ -26,7 +26,7 @@ async def cloneMessage(message, channel_id, hook_id): timestamp=message.created_at ) embed.set_author(name=f'{message.author.name}#{message.author.discriminator}', icon_url=message.author.avatar_url) - embed.add_field(name="Server name", value=channel.guild.name) + embed.add_field(name="Server name", value=message.channel.guild.name) embed.add_field(name="Channel name", value=message.channel.name) embed.add_field(name="Author ID", value=message.author.id) embed.add_field(name="Message ID", value=message.id)