I am making a command in discord.py which sends forest link to a particular channel
@client.command(aliases=['forest','forestcode','forest-code'])
async def code(self, ctx):
await ctx.message.delete()
embed = discord.Embed(
title="Forest code",
description="Please send the link for the forest session"
)
sent = await ctx.send(embed=embed)
try:
msg = await self.bot.wait_for(
"message",
timeout=60,
check=lambda message: message.author == ctx.author
and message.channel == ctx.channel
)
if msg:
await sent.delete()
await msg.delete()
await ctx.send("The link for forest session by" + msg.author + "is" msg.content)
There is this error popping up
File "main.py", line 49
sent = await ctx.send(embed=embed)
^
IndentationError: unexpected indent
Could anyone help me out ?